aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorUlf Samuelsson <ulf.samuelsson@atmel.com>2009-01-25 20:50:59 +0000
committerUlf Samuelsson <ulf.samuelsson@atmel.com>2009-01-25 20:50:59 +0000
commit690ba839c0a2b672a786fdf174ea14827f1c553a (patch)
tree4a2f061ef29824a6ba053c30e496a437e96ef19e
parent6dc301e0be3a6218c50b4352b1e899fca996ab45 (diff)
downloadbuildroot-novena-690ba839c0a2b672a786fdf174ea14827f1c553a.tar.gz
buildroot-novena-690ba839c0a2b672a786fdf174ea14827f1c553a.zip
Support libiconv option for popt
-rw-r--r--package/popt/popt.mk12
1 files changed, 9 insertions, 3 deletions
diff --git a/package/popt/popt.mk b/package/popt/popt.mk
index b2f7c8b4a..3c0ab0b5a 100644
--- a/package/popt/popt.mk
+++ b/package/popt/popt.mk
@@ -5,9 +5,15 @@
#############################################################
POPT_VERSION:=1.14
POPT_SITE:=http://rpm5.org/files/popt
-POPT_INSTALL_STAGING:=YES
-POPT_INSTALL_TARGET:=YES
-POPT_CONF_ENV:=ac_cv_va_copy=yes
+POPT_INSTALL_STAGING = YES
+POPT_INSTALL_TARGET = YES
+
+POPT_CONF_ENV = ac_cv_va_copy=yes
+
+ifeq ($(BR2_PACKAGE_LIBICONV),y)
+POPT_CONF_ENV += am_cv_lib_iconv=yes
+POPT_CONF_OPT += --with-libiconv-prefix=$(STAGING_DIR)/usr
+endif
POPT_DEPENDENCIES:=uclibc