From 4834725774ecbc2f0c415d8bd20317201d5381d9 Mon Sep 17 00:00:00 2001 From: thutchin Date: Mon, 5 Jul 2010 13:00:56 +0000 Subject: Turned off Mac dynlink hack for 10.6.3+ on x86_64 I don't have access to an x86_64 computer with 10.6 Maybe for 10.6.0/1/2 special cases aren't required Reverted commit r13083 git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/coq/trunk@13243 85f007b7-540e-0410-9357-904b9bb8a0f7 --- configure | 20 ++++++++++++++++---- dev/ocamlopt_shared_os5fix.sh | 2 +- 2 files changed, 17 insertions(+), 5 deletions(-) diff --git a/configure b/configure index a12adf36e4..b357595712 100755 --- a/configure +++ b/configure @@ -479,10 +479,22 @@ fi case $HASNATDYNLINK,`uname -s`,`uname -r`,$CAMLVERSION in true,Darwin,9.*,3.11.*) # ocaml 3.11.0 dynlink on MacOS 10.5 is buggy NATDYNLINKFLAG=os5fixme;; - true,Darwin,10.3.*,3.11.*) # Not a problem on MacOS 10.6.3 - NATDYNLINKFLAG=$HASNATDYNLINK;; - true,Darwin,10.*,3.11.*) # Also a problem on previous Mac OS 10.6 versions - NATDYNLINKFLAG=os5fixme;; + #Possibly a problem on 10.6.0/10.6.1/10.6.2 + #May just be a 32 vs 64 problem for all 10.6.* + true,Darwin,10.0.*,3.11.*) # Possibly a problem on 10.6.0 + NATDYNLINKFLAG=os5fixme;; + true,Darwin,10.1.*,3.11.*) # Possibly a problem on 10.6.1 + NATDYNLINKFLAG=os5fixme;; + true,Darwin,10.2.*,3.11.*) # Possibly a problem on 10.6.2 + NATDYNLINKFLAG=os5fixme;; + true,Darwin,10.*,3.11.*) + if [ `getconf LONG_BIT` = "32" ]; then + # Still a problem for x86_32 + NATDYNLINKFLAG=os5fixme + else + # Not a problem for x86_64 + NATDYNLINKFLAG=$HASNATDYNLINK + fi;; *) NATDYNLINKFLAG=$HASNATDYNLINK;; esac diff --git a/dev/ocamlopt_shared_os5fix.sh b/dev/ocamlopt_shared_os5fix.sh index 2926804f57..f7d31ad81c 100755 --- a/dev/ocamlopt_shared_os5fix.sh +++ b/dev/ocamlopt_shared_os5fix.sh @@ -25,5 +25,5 @@ cat $CMXS.startup.s | sed \ # Recompile fixed startup code as -o $CMXS.startup.o $CMXS.startup.fixed.s # Build fixed .cmxs (assume all object files are at the same place) -gcc -bundle -flat_namespace -undefined warning -read_only_relocs suppress -o $CMXS $OBJS $CMXS.startup.o +ld -bundle -flat_namespace -undefined warning -read_only_relocs suppress -o $CMXS $OBJS $CMXS.startup.o rm $CMXS.startup.o $CMXS.startup.s $CMXS.startup.fixed.s \ No newline at end of file -- cgit v1.2.3