diff options
author | Danny Rawlins <monster.romster@gmail.com> | 2013-07-26 21:45:20 +1000 |
---|---|---|
committer | Danny Rawlins <monster.romster@gmail.com> | 2013-07-26 21:45:20 +1000 |
commit | e97116e5e80ae520e51b8d71c06b32a7929e4cf9 (patch) | |
tree | 3248c7be877d5b3d301f43fdd306dd7dc67637c8 /libgmp-32 | |
parent | 3e29b7ef6362302fab640c02004385941d91bf5e (diff) | |
download | compat-32-e97116e5e80ae520e51b8d71c06b32a7929e4cf9.tar.gz compat-32-e97116e5e80ae520e51b8d71c06b32a7929e4cf9.tar.xz |
libgmp-32: fix ABI so it really builds as 32bit and install it's header files for nettle-32
Diffstat (limited to 'libgmp-32')
-rw-r--r-- | libgmp-32/.footprint | 3 | ||||
-rw-r--r-- | libgmp-32/Pkgfile | 15 |
2 files changed, 12 insertions, 6 deletions
diff --git a/libgmp-32/.footprint b/libgmp-32/.footprint index df9a4dd0..d096146f 100644 --- a/libgmp-32/.footprint +++ b/libgmp-32/.footprint @@ -1,5 +1,8 @@ drwxr-xr-x root/root usr/ drwxr-xr-x root/root usr/lib32/ +drwxr-xr-x root/root usr/lib32/gmp/ +-rw-r--r-- root/root usr/lib32/gmp/gmp.h +-rw-r--r-- root/root usr/lib32/gmp/gmpxx.h -rw-r--r-- root/root usr/lib32/libgmp.a -rwxr-xr-x root/root usr/lib32/libgmp.la lrwxrwxrwx root/root usr/lib32/libgmp.so -> libgmp.so.10.1.2 diff --git a/libgmp-32/Pkgfile b/libgmp-32/Pkgfile index f3676e69..7bbf7ff7 100644 --- a/libgmp-32/Pkgfile +++ b/libgmp-32/Pkgfile @@ -4,24 +4,27 @@ name=libgmp-32 version=5.1.2 -release=1 +release=2 source=(ftp://ftp.gmplib.org/pub/gmp-$version/gmp-$version.tar.xz) build() { cd gmp-$version + export ABI=32 + ./configure \ --prefix=/usr \ --libdir=/usr/lib32 \ - --enable-cxx \ - --build=i686-pc-linux-gnu + --includedir=/usr/lib32/gmp \ + --enable-cxx + + #Put gmp.h in the same folder as gmpxx.h + sed -i 's/$(exec_prefix)\/include/$\(includedir\)/' Makefile make make DESTDIR=$PKG install - rm -r \ - $PKG/usr/include \ - $PKG/usr/share/info + rm -rf $PKG/usr/share/info # Remove empty directories find $PKG -depth -empty -exec rm -r {} \; |