Changeset 80265
- Timestamp:
- 07/07/11 23:54:53 (4 years ago)
- Location:
- trunk/dports/lang/apple-gcc42
- Files:
-
- 1 added
- 1 edited
-
Portfile (modified) (5 diffs)
-
files/stage1-cc.patch (added)
Legend:
- Unmodified
- Added
- Removed
-
trunk/dports/lang/apple-gcc42/Portfile
r80247 r80265 36 36 # prefix.patch : Fix hardcoded instances of /usr 37 37 # suffix.patch : Make binaries end in -apple-4.2 38 # stage1-cc.patch : Use $CC for our stage1 compiler 38 39 # makeinfo.patch : Fix version detection for makeinfo in configure scripts 39 40 # werror-*.patch : Fix compilation errors when building for x86_64 … … 44 45 suffix.patch \ 45 46 makeinfo.patch \ 47 stage1-cc.patch \ 46 48 werror-c-incpath.patch \ 47 49 werror-local-alloc.patch … … 53 55 # arch returns i386 even when we want x86_64 54 56 reinplace "/^BUILD=/ s:arch:echo ${build_arch}:" ${worksrcpath}/build_gcc 55 56 # Use our CC57 # TODO: This seems insufficient as "gcc" is still being used58 reinplace "/^unset CC/ s:^:#:" ${worksrcpath}/build_gcc59 57 60 58 # ppc not tested, but it should hopefully work... … … 68 66 reinplace "/^PPC_SYSROOT=/ s:=.*$:=${developer_dir}/SDKs/MacOSX10.3.9.sdk:" ${worksrcpath}/build_gcc 69 67 } 68 69 # Disable -Werror for our bootstrap gcc 70 if {${configure.compiler} == "clang" || 71 ${configure.compiler} == "macports-clang"} { 72 reinplace "s:--enable-werror : :" ${worksrcpath}/build_gcc 73 } 70 74 } 71 75 72 76 # TODO: Use MacPorts dependencies 73 77 build.env \ 74 CC="${configure.cc}" \ 75 LIBRARY_PATH="/usr/lib" \ 76 CPATH="/usr/include" \ 78 LIBRARY_PATH="/usr/lib" \ 79 CPATH="/usr/include" \ 77 80 PATH="/bin:/usr/bin:/sbin:/usr/sbin" 78 81 … … 80 83 81 84 build.args-append \ 85 CC="${configure.cc} -std=gnu89" \ 82 86 PREFIX="${prefix}" \ 83 87 SRCROOT="${srcroot}" \
Note: See TracChangeset
for help on using the changeset viewer.

