Update of /cvsroot/fink/dists/10.4/unstable/main/finkinfo/languages
In directory fdv4jf1.ch3.sourceforge.com:/tmp/cvs-serv9420
Modified Files:
g77.info
Removed Files:
g77-3.4.3-105.patch
Log Message:
Fix so that it builds on both i386 and powerpc machines for 10.4-10.6.
Update by w170 from the submissions tracker:
https://sourceforge.net/tracker/?func=detail&atid=414256&aid=2890365&group_id=17203
Index: g77.info
===================================================================
RCS file: /cvsroot/fink/dists/10.4/unstable/main/finkinfo/languages/g77.info,v
retrieving revision 1.7
retrieving revision 1.8
diff -u -d -r1.7 -r1.8
--- g77.info 15 Oct 2009 20:32:28 -0000 1.7
+++ g77.info 1 Nov 2009 19:07:25 -0000 1.8
@@ -1,6 +1,6 @@
Package: g77
Version: 3.4.3
-Revision: 105
+Revision: 106
Architecture: powerpc, i386
Source: mirror:gnu:gcc/gcc-%v/gcc-%v.tar.bz2
Source-MD5: e744b30c834360fccac41eb7269a3011
@@ -14,6 +14,7 @@
PatchFile-MD5: a20e01e087bc3fc056794799a16cc382
PatchScript: <<
#!/bin/sh -ev
+ # PatchFile-MD5: a20e01e087bc3fc056794799a16cc382
patch -p1 < %{PatchFile}
cd gcc-%v/gcc
autoconf
@@ -31,8 +32,22 @@
#!/bin/sh -ev
mkdir darwin
cd darwin
+ #Following determines whether compiler is 32 or 64 bit default, and forces
+ # build to use 32 bit;
+ darwinvers=`/usr/bin/uname -v | cut -f1 -d":" | awk '{print $4}'`
+ echo mflag= > .set-mflag
+ echo 'int main(int argc, char *argv[]){return 0;}' > cc-target.c
+ cc -v -o cc-target cc-target.c 2>&1 | egrep '/as[ ]*-arch' |
+ while read prog arch arg rest; do
+ case "${arg}" in
+ x86_64) echo mflag=-m32 > .set-mflag ;;
+ *) ;;
+ esac
+ done
+ . .set-mflag
+ /bin/rm -f cc-target.c cc-target .set-mflag
../gcc-%v/configure %c
- make STAGE1_CFLAGS='-m32 -D_FORTIFY_SOURCE=0' BOOT_CFLAGS='-m32
-D_FORTIFY_SOURCE=0' CFLAGS='-O -fno-common -m32 -D_FORTIFY_SOURCE=0'
LIBCFLAGS='-g -O2 -fno-common -m32 -D_FORTIFY_SOURCE=0' LIBCXXFLAGS='-g -O2
-m32 -fno-implicit-templates -D_FORTIFY_SOURCE=0' bootstrap
+ make STAGE1_CFLAGS="${mflag} -D_FORTIFY_SOURCE=0" BOOT_CFLAGS="${mflag}
-D_FORTIFY_SOURCE=0" CFLAGS="-O -fno-common ${mflag} -D_FORTIFY_SOURCE=0"
LIBCFLAGS="-g -O2 -fno-common ${mflag} -D_FORTIFY_SOURCE=0" LIBCXXFLAGS="-g -O2
${mflag} -fno-implicit-templates -D_FORTIFY_SOURCE=0" bootstrap
# cd gcc; make check-g77
<<
InstallScript: <<
--- g77-3.4.3-105.patch DELETED ---
------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
Fink-commits mailing list
[email protected]
http://news.gmane.org/gmane.os.apple.fink.cvs