diff options
author | Waldemar Brodkorb <wbx@openadk.org> | 2014-06-01 08:40:04 +0200 |
---|---|---|
committer | Waldemar Brodkorb <wbx@openadk.org> | 2014-06-01 08:40:15 +0200 |
commit | d58e901f6e627c03dbb35f4ac779e5afe30a0cd2 (patch) | |
tree | b0a0ad8431f0cadf0f53c7e51774c6545ce97878 | |
parent | 2ea83ec3b5900d69125d3e02f2c472b531a5ee92 (diff) |
fix static build
-rw-r--r-- | package/bzip2/Makefile | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/package/bzip2/Makefile b/package/bzip2/Makefile index 2e3dde534..304329d55 100644 --- a/package/bzip2/Makefile +++ b/package/bzip2/Makefile @@ -32,7 +32,13 @@ $(eval $(call PKG_template,LIBBZ2,libbz2,${PKG_VERSION}-${PKG_RELEASE},,${PKGSD_ HOST_STYLE:= manual HOST_MAKE_FILE:= Makefile + +ifneq ($(ADK_TARGET_USE_STATIC_LIBS),y) MAKE_FILE:= Makefile-libbz2_so +BIN_FILE:= bzip2-shared +else +BIN_FILE:= bzip2 +endif CONFIG_STYLE:= manual TARGET_CFLAGS+= -fPIC XAKE_FLAGS+= PREFIX=${WRKINST}/usr CROSS_COMPILE=1 @@ -59,7 +65,7 @@ libbz2-install: bzip2-install: ${INSTALL_DIR} ${IDIR_BZIP2}/usr/bin - ${INSTALL_BIN} ${WRKBUILD}/bzip2-shared ${IDIR_BZIP2}/usr/bin/bzip2 + ${INSTALL_BIN} ${WRKBUILD}/$(BIN_FILE) ${IDIR_BZIP2}/usr/bin/bzip2 include ${TOPDIR}/mk/host-bottom.mk include ${TOPDIR}/mk/pkg-bottom.mk |