PKG_BUILD_PARALLEL:=1
PKG_INSTALL:=1
+PKG_FIXUP:=autoreconf
include $(INCLUDE_DIR)/package.mk
/etc/netatalk/afpd.conf
endef
-EXTRA_CFLAGS += -I$(STAGING_DIR)/usr/include
-TARGET_CFLAGS += -I$(STAGING_DIR)/usr/include
+TARGET_CFLAGS += -std=c99 -Wl,-rpath-link=$(STAGING_DIR)/usr/lib
TARGET_LDFLAGS += $(LIBRPC)
-CONFIGURE_VARS += \
- CFLAGS="$(TARGET_CFLAGS) -std=gnu99 -DNO_DEBUG "
-
CONFIGURE_ARGS += \
--disable-afs \
--enable-hfs \
--- /dev/null
+--- a/macros/iconv.m4
++++ b/macros/iconv.m4
+@@ -114,6 +114,5 @@ int main() {
+
+ CFLAGS="$savedcflags"
+ LDFLAGS="$savedldflags"
+- CPPFLAGS="$saved_CPPFLAGS"
+
+ ])