summaryrefslogtreecommitdiff
path: root/package/ncurses/Makefile
diff options
context:
space:
mode:
authorWaldemar Brodkorb <wbx@openadk.org>2014-06-20 10:13:00 +0200
committerWaldemar Brodkorb <wbx@openadk.org>2014-06-20 10:13:24 +0200
commit87c0185bf492767c4439f66f65398eb0ed3bda34 (patch)
tree3c3255e6fab49050a3314ea797463d56190d57be /package/ncurses/Makefile
parentdfd37d10510d013fc7c49ecb42d1b75c14be4594 (diff)
fix some packages, when static build is choosen
Diffstat (limited to 'package/ncurses/Makefile')
-rw-r--r--package/ncurses/Makefile10
1 files changed, 8 insertions, 2 deletions
diff --git a/package/ncurses/Makefile b/package/ncurses/Makefile
index 084e2b283..cad3dba1a 100644
--- a/package/ncurses/Makefile
+++ b/package/ncurses/Makefile
@@ -26,7 +26,14 @@ include ${TOPDIR}/mk/package.mk
$(eval $(call HOST_template,LIBNCURSES,libncurses,${PKG_VERSION}-${PKG_RELEASE}))
$(eval $(call PKG_template,LIBNCURSES,libncurses,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION},${PKG_OPTS}))
-CONFIGURE_ENV+= ac_cv_linux_vers=2
+ifeq ($(ADK_TARGET_USE_STATIC_LIBS),y)
+CONFIGURE_ARGS+= --with-static
+else
+CONFIGURE_ARGS+= --with-shared
+endif
+
+CONFIGURE_ENV+= ac_cv_linux_vers=2 \
+ PKG_CONFIG_LIBDIR=/usr/lib/pkgconfig
CONFIGURE_ARGS+= --without-cxx \
--without-cxx-binding \
--with-build-cc=${HOST_CC} \
@@ -35,7 +42,6 @@ CONFIGURE_ARGS+= --without-cxx \
--enable-symlinks \
--without-ada \
--without-normal \
- --with-shared \
--enable-pc-files \
--with-termlib \
--without-debug \