Ticket #31171: gcc46-ld.diff

File gcc46-ld.diff, 1.2 KB (added by Kona8lend@…, 13 years ago)
  • dports/lang/gcc46/files/patch-gcc-exec-tool.in.diff

     
     1--- gcc/exec-tool.in.orig       2011-01-03 15:52:22.000000000 -0500
     2+++ gcc/exec-tool.in    2011-11-18 01:43:40.000000000 -0500
     3@@ -84,6 +84,11 @@
     4     fi
     5     ;;
     6   *)
     7+    # Late-stage build creates libstdc++.6.dylib which is incompatible with
     8+    # darwin-bundled version and when far-reaching DYLD_LIBRARY_PATH is set
     9+    # it causes standard Apple devtools such as ld to crash.
     10+    test -n "${DYLD_LIBRARY_PATH+1}" && unset DYLD_LIBRARY_PATH
     11+
     12     exec $original ${1+"$@"}
     13     ;;
     14 esac
  • dports/lang/gcc46/Portfile

     
    4343depends_lib             port:gmp port:mpfr port:libiconv port:libmpc port:ppl
    4444depends_run             port:gcc_select
    4545
     46patchfiles      patch-gcc-exec-tool.in.diff
     47patch.dir       ${workpath}/gcc-${version}
     48
    4649set major               4.6
    4750
    4851worksrcdir              build