diff options
author | Waldemar Brodkorb <wbx@openadk.org> | 2011-04-28 07:43:41 +0200 |
---|---|---|
committer | Waldemar Brodkorb <wbx@openadk.org> | 2011-04-28 07:43:41 +0200 |
commit | 5bdddee21c69916d5622d0948e1c3fecc34e606b (patch) | |
tree | 9006fe4a2adb68f0b8a728bda2fb565bdc60197c | |
parent | fa10cd3a3983f75ed800bbe5c2a6fd753e2333f0 (diff) |
allow static linking option
-rw-r--r-- | package/liblzo/Makefile | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/package/liblzo/Makefile b/package/liblzo/Makefile index fb8011912..4aa9a16b2 100644 --- a/package/liblzo/Makefile +++ b/package/liblzo/Makefile @@ -16,15 +16,19 @@ PKG_SUBPKGS:= LIBLZO LIBLZO_DEV PKGSD_LIBLZO_DEV:= lzo library headers PKGSC_LIBLZO_DEV:= devel +ifeq ($(ADK_STATIC),y) +PKG_OPTS:= libonly +endif + include ${TOPDIR}/mk/package.mk -$(eval $(call PKG_template,LIBLZO,liblzo,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION})) -$(eval $(call PKG_template,LIBLZO_DEV,liblzo-dev,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKGSD_LIBLZO_DEV},${PKGSC_LIBLZO_DEV})) +$(eval $(call PKG_template,LIBLZO,liblzo,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION},$(PKG_OPTS))) +$(eval $(call PKG_template,LIBLZO_DEV,liblzo-dev,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKGSD_LIBLZO_DEV},${PKGSC_LIBLZO_DEV},$(PKG_OPTS))) CONFIGURE_ARGS+= --enable-static MAKE_FLAGS+= CFLAGS_O="${TARGET_CFLAGS}" -liblzo-install: +post-install: ${INSTALL_DIR} ${IDIR_LIBLZO}/usr/lib ${CP} ${WRKINST}/usr/lib/liblzo2.so* ${IDIR_LIBLZO}/usr/lib |