]> git.ipfire.org Git - ipfire-3.x.git/commitdiff
python: Fix that python uses libffi from system.
authorMichael Tremer <michael.tremer@ipfire.org>
Sun, 20 Jun 2010 09:34:31 +0000 (11:34 +0200)
committerMichael Tremer <michael.tremer@ipfire.org>
Sun, 20 Jun 2010 09:34:31 +0000 (11:34 +0200)
pkgs/core/python/python.nm

index f6572578bd54b233b5a4046c95b119d71e0cfc33..088dad528c908d7d741745fa6c9a614dec3966ed 100644 (file)
@@ -34,8 +34,8 @@ PKG_URL        = http://www.python.org
 PKG_LICENSE    = Python
 PKG_SUMMARY    = An interpreted, interactive, object-oriented programming language.
 
-PKG_BUILD_DEPS+= autoconf automake
-PKG_DEPS      += bzip2 db expat gdbm gmp libffi ncurses openssl pkg-config readline sqlite tar zlib
+PKG_BUILD_DEPS+= autoconf automake pkg-config
+PKG_DEPS      += bzip2 db expat gdbm gmp libffi ncurses openssl readline sqlite tar zlib
 
 define PKG_DESCRIPTION
        Python is an interpreted, interactive, object-oriented programming \
@@ -47,13 +47,16 @@ endef
 
 PKG_TARBALL    = $(THISAPP).tar.bz2
 
-###############################################################################
-# Installation Details
-###############################################################################
+export CFLAGS  += -D_GNU_SOURCE -fwrapv
+export CPPFLAGS = $(shell pkg-config --cflags-only-I libffi)
 
 define STAGE_PREPARE_CMDS
        cd $(DIR_APP) && sed -e "s/#*shared*/*shared*/g" -i Modules/Setup.dist
 
+       # Remove embedded copies of expat, zlib and libffi
+       cd $(DIR_APP) && rm -rf Modules/{expat,zlib}
+       cd $(DIR_APP) && rm -rf Modules/_ctypes/{darwin,libffi,libffi_arm_wince,libffi_msvc,libffi_osx}
+
        cd $(DIR_APP) && autoreconf
 endef