summaryrefslogtreecommitdiff
path: root/package/afpfs-ng
diff options
context:
space:
mode:
authorWaldemar Brodkorb <wbx@openadk.org>2015-06-04 11:15:13 +0200
committerWaldemar Brodkorb <wbx@openadk.org>2015-06-04 12:18:47 +0200
commite38b3ae4013ecf93d07ddbf68bad8fc5441ff9c5 (patch)
tree91f245938efed2a4e79c4bd7f5af6b84046cd9d4 /package/afpfs-ng
parent38425cc0246c05fc3b65c78d9fe6e6206ef2e99f (diff)
fix linking with uClibc-ng
Diffstat (limited to 'package/afpfs-ng')
-rw-r--r--package/afpfs-ng/Makefile7
1 files changed, 7 insertions, 0 deletions
diff --git a/package/afpfs-ng/Makefile b/package/afpfs-ng/Makefile
index 268aff1de..736065766 100644
--- a/package/afpfs-ng/Makefile
+++ b/package/afpfs-ng/Makefile
@@ -16,6 +16,9 @@ PKG_SITES:= ${MASTER_SITE_SOURCEFORGE:=afpfs-ng/}
PKG_LIBNAME:= libafpclient
PKG_OPTS:= dev
+PKG_BUILDDEP_UCLIBC:= libiconv-tiny
+PKG_BUILDDEP_UCLIBC_NG:=libiconv-tiny
+
PKG_SUBPKGS:= AFPFS_NG LIBAFPCLIENT
PKGSD_LIBAFPCLIENT:= afp client library
PKGSC_LIBAFPCLIENT:= libs/net
@@ -27,6 +30,10 @@ include $(ADK_TOPDIR)/mk/package.mk
$(eval $(call PKG_template,AFPFS_NG,afpfs-ng,$(PKG_VERSION)-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
$(eval $(call PKG_template,LIBAFPCLIENT,libafpclient,$(PKG_VERSION)-${PKG_RELEASE},${PKGSS_LIBAFPCLIENT},${PKGSD_LIBAFPCLIENT},${PKGSC_LIBAFPCLIENT}))
+ifeq ($(ADK_TARGET_LIB_UCLIBC)$(ADK_TARGET_LIB_UCLIBC_NG),y)
+TARGET_LDFLAGS+= -liconv
+endif
+
AUTOTOOL_STYLE:= autoreconf
CONFIGURE_ARGS+= --enable-gcrypt
CONFIGURE_ENV+= ac_cv_func_malloc_0_nonnull=yes