Ticket #40478: gcc48-leo-pt1.patch

File gcc48-leo-pt1.patch, 2.2 KB (added by jeremyhu (Jeremy Huddleston Sequoia), 11 years ago)

initial patch

  • Portfile

     
    4646    configure.pre_args-append --build=${build_arch}-apple-darwin${os.major}
    4747}
    4848
     49patchfiles PR-40478.patch
     50
     51post-patch {
     52    # The patch I generated from GPL2 doesn't apply this hunk.
     53    # TODO: Someone should roll this into PR-40478.patch
     54    system "echo '#include \"../config-apple-verbatim.h\"' >> ${worksrcpath}/libcpp/config.in"
     55}
     56
    4957configure.dir       ${workpath}/build
    5058configure.cmd       ${worksrcpath}/configure
    5159configure.args      --enable-languages=c,c++,objc,obj-c++,lto,fortran,java \
  • files/PR-40478.patch

     
     1diff -Naurp gcc-5666.3.orig/config-apple-verbatim.h gcc-5666.3/config-apple-verbatim.h
     2--- config-apple-verbatim.h     1969-12-31 16:00:00.000000000 -0800
     3+++ config-apple-verbatim.h     2013-09-14 07:55:08.000000000 -0700
     4@@ -0,0 +1,13 @@
     5+#ifdef __APPLE__
     6+
     7+#undef SIZEOF_LONG
     8+#if __LP64__
     9+#define SIZEOF_LONG 8
     10+#else
     11+#define SIZEOF_LONG 4
     12+#endif
     13+
     14+#undef SIZEOF_VOID_P
     15+#define SIZEOF_VOID_P SIZEOF_LONG
     16+
     17+#endif
     18diff -Naurp gcc-5666.3.orig/gcc/config.in gcc-5666.3/gcc/config.in
     19--- gcc/config.in       2010-10-14 13:27:54.000000000 -0700
     20+++ gcc/config.in       2013-09-14 07:53:45.000000000 -0700
     21@@ -1414,3 +1414,6 @@
     22 #undef vfork
     23 #endif
     24 
     25+#ifndef USED_FOR_TARGET
     26+#include "../config-apple-verbatim.h"
     27+#endif
     28diff -Naurp gcc-5666.3.orig/libdecnumber/config.in gcc-5666.3/libdecnumber/config.in
     29--- libdecnumber/config.in      2010-10-14 13:24:11.000000000 -0700
     30+++ libdecnumber/config.in      2013-09-14 07:53:52.000000000 -0700
     31@@ -74,3 +74,6 @@
     32 
     33 /* Define to `long' if <sys/types.h> does not define. */
     34 #undef off_t
     35+
     36+#include "../config-apple-verbatim.h"
     37+
     38diff -Naurp gcc-5666.3.orig/libgomp/config.h.in gcc-5666.3/libgomp/config.h.in
     39--- libgomp/config.h.in 2010-10-14 13:24:11.000000000 -0700
     40+++ libgomp/config.h.in 2013-09-14 07:53:27.000000000 -0700
     41@@ -101,3 +101,5 @@
     42 
     43 /* Version number of package */
     44 #undef VERSION
     45+
     46+#include "../config-apple-verbatim.h"