- downgrade to gmp-4.3.2
- build as shared lib
This commit is contained in:
Stephan Raue 2010-03-31 12:29:17 +02:00
parent 965e8b68f7
commit 022a2a35c7
3 changed files with 32 additions and 5 deletions

View File

@ -8,7 +8,7 @@ setup_toolchain host
# workaround gcc 4.3.2 bug on x86_64 hosts
# http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=524472
# export CFLAGS="$CFLAGS -fno-strict-aliasing -fPIC"
export CFLAGS="$CFLAGS -fno-strict-aliasing -fPIC"
cd $PKG_BUILD
@ -17,13 +17,13 @@ cd objdir
../configure --host=$HOST_NAME \
--build=$HOST_NAME \
--target=$TARGET_NAME \
--prefix=$ROOT/$TOOLCHAIN \
--disable-shared \
--enable-static \
--enable-shared \
--disable-static \
--enable-mpbsd \
--enable-cxx \
make
make check
make install

View File

@ -0,0 +1,27 @@
diff -Naur gmp-4.2.3.orig/configure gmp-4.2.3/configure
--- gmp-4.2.3.orig/configure 2008-08-05 13:56:41.000000000 +0200
+++ gmp-4.2.3/configure 2008-08-05 13:57:06.000000000 +0200
@@ -1584,22 +1584,7 @@
-# If --target is not used then $target_alias is empty, but if say
-# "./configure athlon-pc-freebsd3.5" is used, then all three of
-# $build_alias, $host_alias and $target_alias are set to
-# "athlon-pc-freebsd3.5".
-#
-if test -n "$target_alias" && test "$target_alias" != "$host_alias"; then
- { { echo "$as_me:$LINENO: error: --target is not appropriate for GMP
-Use --build=CPU-VENDOR-OS if you need to specify your CPU and/or system
-explicitly. Use --host if cross-compiling (see \"Installing GMP\" in the
-manual for more on this)." >&5
-echo "$as_me: error: --target is not appropriate for GMP
-Use --build=CPU-VENDOR-OS if you need to specify your CPU and/or system
-explicitly. Use --host if cross-compiling (see \"Installing GMP\" in the
-manual for more on this)." >&2;}
- { (exit 1); exit 1; }; }
-fi
+
gmp_configm4="config.m4"
gmp_tmpconfigm4=cnfm4.tmp

View File

@ -1 +1 @@
ftp://sunsite.cnlab-switch.ch/mirror/gnu/gmp/gmp-5.0.1.tar.bz2
http://ftp.sunet.se/pub/gnu/gmp/gmp-4.3.2.tar.bz2