summaryrefslogtreecommitdiff
path: root/package/pycurl
diff options
context:
space:
mode:
authorWaldemar Brodkorb <wbx@openadk.org>2011-11-10 19:03:11 +0100
committerWaldemar Brodkorb <wbx@openadk.org>2011-11-10 19:03:11 +0100
commit713dc7012af249b7102faabb27e0fe88ea39be57 (patch)
tree2626b2aa8f2ebb6e6c314ccdba45d7668ed122fd /package/pycurl
parentda5c3b1c8535d8f8455b5283ddaf5c38b45d477e (diff)
fix make bulk on OpenADK buildserver
Diffstat (limited to 'package/pycurl')
-rw-r--r--package/pycurl/Makefile16
1 files changed, 9 insertions, 7 deletions
diff --git a/package/pycurl/Makefile b/package/pycurl/Makefile
index a0325ad11..8f36efa82 100644
--- a/package/pycurl/Makefile
+++ b/package/pycurl/Makefile
@@ -22,19 +22,21 @@ CONFIG_STYLE:= manual
BUILD_STYLE:= manual
INSTALL_STYLE:= manual
+XAKE_FLAGS+= GCC_HONOUR_COPTS=s
TARGET_CFLAGS+= -fPIC
+ifeq ($(ADK_NATIVE),)
MAKE_ENV+= LDSHARED="$(TARGET_CC) -shared"
+CURL_CONFIG:= $(STAGING_DIR)/usr/bin/curl-config
+else
+MAKE_ENV+= CC="$(CC)" LDSHARED="$(CC) -shared"
+CURL_CONFIG:= /usr/bin/curl-config
+endif
include $(TOPDIR)/mk/python.mk
-#do-configure:
- # native build for urlgrabber package
-# (cd $(WRKBUILD); env CC=$(CC_FOR_BUILD) CFLAGS="$(CFLAGS_FOR_BUILD)" python ./setup.py build)
-# (cd $(WRKBUILD); enc CC=$(CC_FOR_BUILD) CFLAGS="$(CFLAGS_FOR_BUILD)" python ./setup.py install --prefix="$(STAGING_DIR)/usr")
-
do-build:
- (cd $(WRKBUILD); env PYTHONPATH=$(PYTHON_LIBDIR) $(PYTHON) ./setup.py --curl-config="$(STAGING_DIR)/usr/bin/curl-config" build)
- (cd $(WRKBUILD); env PYTHONPATH=$(PYTHON_LIBDIR) $(PYTHON) ./setup.py install --prefix="$(WRKINST)/usr")
+ (cd $(WRKBUILD); env GCC_HONOUR_COPTS=s PYTHONPATH=$(PYTHON_LIBDIR) $(PYTHON) ./setup.py --curl-config=$(CURL_CONFIG) build)
+ (cd $(WRKBUILD); env GCC_HONOUR_COPTS=s PYTHONPATH=$(PYTHON_LIBDIR) $(PYTHON) ./setup.py --curl-config=$(CURL_CONFIG) install --prefix="$(WRKINST)/usr")
do-install:
$(INSTALL_DIR) $(IDIR_PYCURL)/usr/lib/python$(PYTHON_VERSION)/site-packages