diff options
author | Waldemar Brodkorb <wbx@openadk.org> | 2011-11-17 12:51:22 +0100 |
---|---|---|
committer | Waldemar Brodkorb <wbx@openadk.org> | 2011-11-17 12:51:22 +0100 |
commit | 9f02979caebb6e900fe101a257d8e6c344a7a173 (patch) | |
tree | 350b808ae23e8abb4ff08d472b76104a89e1f35a /package/pycurl | |
parent | afb9908771db100ee97bb933fcca850c4f49af5a (diff) | |
parent | ee3c54b1570b9dd8ea900a11d496ced1ad1ae356 (diff) |
Merge branch 'master' of git+ssh://openadk.org/git/openadk
Diffstat (limited to 'package/pycurl')
-rw-r--r-- | package/pycurl/Makefile | 16 |
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 |