| Bill Allombert on Thu, 28 Nov 2002 21:39:16 +0100 |
[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]
| Re: --host in Configure |
On Thu, Nov 28, 2002 at 10:50:39AM -0800, Justin C. Walker wrote:
>
> On Thursday, November 28, 2002, at 08:52 AM, Bill Allombert wrote:
>
>
> I have Mac OS X boxes (10.15 and 10.2.2), and am happy to test if needs
> be.
So it be!
Here a patch, that can do a lot of interesting things, but not make 'make bench',
gp2c 'make check' or gp2c-run working. On the other hand, I would be only moderatly
surprised if you end up with a working dynamic library.
(To apply it, copy this mail to a file and do
patch Configure < file in the pari (2.2.5) directory...)
Cheers,
Bill.
Index: Configure
===================================================================
RCS file: /home/megrez/cvsroot/pari/Configure,v
retrieving revision 1.95
diff -u -r1.95 Configure
--- Configure 2002/10/22 22:07:51 1.95
+++ Configure 2002/11/28 20:33:23
@@ -521,9 +521,12 @@
case "$osname-$arch" in
linux-i?86|cygwin*|os2-*) OPTFLAGS="$OPTFLAGS \
-malign-loops=2 -malign-jumps=2 -malign-functions=2";;
+ esac
+ case "$osname-$arch" in
*-sparcv8*) cflags=-mv8;;
+ darwin-*) cflags=-fno-common;;
+ os2-*) cflags=-Zmt;;
esac
- if test "X$osname" = Xos2; then cflags=-Zmt; fi
# omit-frame-pointer incompatible with -pg
PRFFLAGS="-pg $OPTFLAGS"
@@ -553,6 +556,7 @@
case "$osname" in
nextstep) cflags="-traditional-cpp $cflags";;
+ darwin) cflags="-no-cpp-precomp $cflags";;
esac
case "$optimization" in
@@ -634,6 +638,7 @@
linux-*|cygwin*|freebsd-*)
LD=$CC; LDFLAGS="$cflags -Xlinker -export-dynamic"
runpathprefix='-Xlinker -rpath -Xlinker ';;
+ darwin-*) LD=$CC; LDFLAGS="$cflags"; runpathprefix='';; #FIXME
osf1-alpha)
LD=$ld; LIBS="$LIBS -lots -lc"; runpathprefix='-rpath '
LDFLAGS='-std0 -call_shared /usr/lib/cmplrs/cc/crt0.o'
@@ -692,6 +697,7 @@
# DLL names better be 8+3
libpari_base=`echo "$libpari_base" | sed 's/\./_/g'`
;;
+ darwin-*) soname=''; sodest=''; DLSUFFIX="$VersionMajor.dylib;";;
*) DLLD=;;
esac
fi
@@ -728,6 +734,7 @@
sunos-*) DLLDFLAGS="-assert nodefinitions" ;;
solaris-*) DLLDFLAGS="-G -h \$(LIBPARI_SONAME)" ;;
os2-*) ;;
+ darwin-*) DLLDFLAGS="-install_name \$(LIBDIR)/\$(LIBPARI_SONAME) -compatibility_version $version -current_version $pari_release";;#FIXME for unstable branch.
*) DLLD=;;
esac
fi