summaryrefslogtreecommitdiff
path: root/package/pycurl
diff options
context:
space:
mode:
authorWaldemar Brodkorb <wbx@openadk.org>2011-11-17 12:51:22 +0100
committerWaldemar Brodkorb <wbx@openadk.org>2011-11-17 12:51:22 +0100
commit9f02979caebb6e900fe101a257d8e6c344a7a173 (patch)
tree350b808ae23e8abb4ff08d472b76104a89e1f35a /package/pycurl
parentafb9908771db100ee97bb933fcca850c4f49af5a (diff)
parentee3c54b1570b9dd8ea900a11d496ced1ad1ae356 (diff)
Merge branch 'master' of git+ssh://openadk.org/git/openadk
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