From: Michael Tremer Date: Sun, 20 Jun 2010 09:34:31 +0000 (+0200) Subject: python: Fix that python uses libffi from system. X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4f8fc736900fd1956b3b100dbb209c5ed9a448ff;p=ipfire-3.x.git python: Fix that python uses libffi from system. --- diff --git a/pkgs/core/python/python.nm b/pkgs/core/python/python.nm index f6572578b..088dad528 100644 --- a/pkgs/core/python/python.nm +++ b/pkgs/core/python/python.nm @@ -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