python: set CC/LD to build properly some external modules (sqlite).
This commit is contained in:
parent
6217407fba
commit
fe09001745
1 changed files with 6 additions and 3 deletions
|
@ -1,7 +1,7 @@
|
|||
# Template build file for 'python'.
|
||||
pkgname=python
|
||||
version=2.7.3
|
||||
revision=5
|
||||
revision=6
|
||||
wrksrc="Python-${version}"
|
||||
short_desc="Interpreted, interactive, object-oriented programming language"
|
||||
maintainer="Juan RP <xtraeme@gmail.com>"
|
||||
|
@ -12,6 +12,7 @@ checksum=61d36be58e9e9c733c49d7b76858d5c08e2c63a84f2066b29d35d3521057c985
|
|||
|
||||
pycompile_dirs="usr/lib/python2.7"
|
||||
|
||||
hostmakedepends="pkg-config"
|
||||
makedepends="libffi-devel readline-devel gdbm-devel openssl-devel
|
||||
expat-devel db-devel>=5.3 sqlite-devel bzip2-devel zlib-devel"
|
||||
|
||||
|
@ -36,7 +37,7 @@ if [ "$CROSS_BUILD" ]; then
|
|||
sed -i "/SQLITE_OMIT_LOAD_EXTENSION/d" setup.py
|
||||
CFLAGS="$CFLAGS -I$XBPS_CROSS_BASE/include" \
|
||||
LDFLAGS="$LDFLAGS -L$XBPS_CROSS_BASE/lib" \
|
||||
./configure ${CONFIGURE_SHARED_ARGS} \
|
||||
./configure ${CONFIGURE_SHARED_ARGS} CC="$CC" LD="$CC" \
|
||||
${_confargs} ac_cv_buggy_getaddrinfo=no
|
||||
}
|
||||
do_build() {
|
||||
|
@ -57,7 +58,7 @@ else
|
|||
do_configure() {
|
||||
# Enable built-in SQLite3 module to load extensions (Arch fix FS#22122)
|
||||
sed -i "/SQLITE_OMIT_LOAD_EXTENSION/d" setup.py
|
||||
./configure ${CONFIGURE_SHARED_ARGS} ${_confargs}
|
||||
CC="gcc" LD="gcc" ./configure ${CONFIGURE_SHARED_ARGS} ${_confargs}
|
||||
}
|
||||
do_build() {
|
||||
make ${makejobs}
|
||||
|
@ -70,6 +71,8 @@ fi
|
|||
post_install() {
|
||||
chmod 755 ${DESTDIR}/usr/lib/libpython*.so*
|
||||
install -Dm644 LICENSE ${DESTDIR}/usr/share/licenses/python/LICENSE
|
||||
# Remove test module.
|
||||
rm -rf ${DESTDIR}/usr/lib/python2.7/test
|
||||
}
|
||||
|
||||
python_package() {
|
||||
|
|
Loading…
Reference in a new issue