Revision: 80126 http://trac.macports.org/changeset/80126 Author: jeremyhu@macports.org Date: 2011-07-04 17:23:08 -0700 (Mon, 04 Jul 2011) Log Message: ----------- apple-gcc42: Version bump to 5666.3 Modified Paths: -------------- trunk/dports/lang/apple-gcc42/Portfile Modified: trunk/dports/lang/apple-gcc42/Portfile =================================================================== --- trunk/dports/lang/apple-gcc42/Portfile 2011-07-04 20:54:21 UTC (rev 80125) +++ trunk/dports/lang/apple-gcc42/Portfile 2011-07-05 00:23:08 UTC (rev 80126) @@ -3,7 +3,7 @@ PortSystem 1.0 name apple-gcc42 -version 5664 +version 5666.3 categories lang platforms darwin maintainers nomaintainer @@ -14,9 +14,9 @@ homepage http://opensource.apple.com/ master_sites http://opensource.apple.com/tarballs/gcc/ distname gcc-${version} -checksums md5 cc7f9e2fbae5548a2abec19ba6fd1b78 \ - sha1 e1aed094e2a68dc2a877e4c32caddaa1511175ed \ - rmd160 c22787601b7dc08fe85d5c3328ad3ea2efa727e1 +checksums md5 188c7769db5c898922b0976fab148a63 \ + sha1 292a0cfcfdc061cb083658efd9a3812a120a1f50 \ + rmd160 a01d000f89c0e89dd0079dcd202bba7629ba78dc post-extract { file mkdir ${workpath}/build } @@ -44,17 +44,21 @@ destroot.dir ${build.dir} +# STAGE1_CFLAGS="-O2 -fkeep-inline-functions" : from configure.ac +# BOOT_CFLAGS="-O2 -g" : from Makefile.tpl +# -std=gnu89 : for building with compilers that default to c99 (clang) +# -D_FORTIFY_SOURCE=0 : The built compiler might not understand newer builtins +# exposed in libc headers for fortified string functions. +# Yes, we need to set both BOOT_CFLAGS and STAGE1_CFLAGS +# because STAGE1_CFLAGS is used with xgcc for libgcc +build.args-append BOOT_CFLAGS="-O2 -g -D_FORTIFY_SOURCE=0" STAGE1_CFLAGS="-O2 -fkeep-inline-functions -D_FORTIFY_SOURCE=0 -std=gnu89" + post-destroot { file delete -force \ ${destroot}${nprefix}/man ${destroot}${nprefix}/info system "cd ${destroot}${prefix}/bin && ln -sf ${nprefix}/bin/gcc-apple-4.2 && ln -sf ${nprefix}/bin/cpp-apple-4.2" } -# clang can't build gcc -if {${configure.compiler} == "clang"} { - configure.compiler llvm-gcc-4.2 -} - livecheck.type regex livecheck.url [lindex ${master_sites} 0] livecheck.regex gcc-(\\d+(?:\\.\\d+)*)\\.tar
participants (1)
-
jeremyhu@macports.org