[Lunar-commits] <moonbase> zlib: for x86_64 arch -fPIC is needed in order to get Python module installed.

Florin Braescu florin at lunar-linux.org
Sun Jul 1 13:09:47 CEST 2012


commit 6b19b86d799e53bceafdeb8fb309d7ca9fbe55fe
Author: Florin Braescu <florin at lunar-linux.org>
Date:   Sun Jul 1 13:09:47 2012 +0200

    zlib: for x86_64 arch -fPIC is needed in order to get Python module installed.
---
 archive/zlib/BUILD.x86_64 |   23 +++++++++++++++++++++++
 1 file changed, 23 insertions(+)

diff --git a/archive/zlib/BUILD.x86_64 b/archive/zlib/BUILD.x86_64
new file mode 100644
index 0000000..713d634
--- /dev/null
+++ b/archive/zlib/BUILD.x86_64
@@ -0,0 +1,23 @@
+(
+
+# needed for Python to build zlib module
+  export CFLAGS="$CFLAGS -fPIC"  &&
+
+  sedit "s:\${libdir}/pkgconfig:/usr/lib/pkgconfig:" Makefile.in  &&
+
+  ./configure  --prefix=/usr  &&
+  make                        &&
+
+  ./configure  --prefix=/usr  \
+               --libdir=/lib  \
+               --shared      &&
+
+  default_make  &&
+
+  # for systems without /bin -> /usr/bin symlink
+  if [ "`cd /usr/bin; pwd -P`" != "`cd /bin; pwd -P`" ]; then
+    cp libz.a /usr/lib  &&
+    rm /lib/libz.a
+  fi
+
+) > $C_FIFO 2>&1


More information about the Lunar-commits mailing list