-define Build/Configure
- ( cd $(PKG_BUILD_DIR); NOEXECCONFIGURE=1 ./bootstrap )
- $(call Build/Configure/Default, \
- --disable-timelord \
- --disable-a2boot \
- --disable-cups \
- --disable-tcp-wrappers \
- --with-cnid-default-backend=dbd \
- --with-bdb="$(STAGING_DIR)/usr/" \
- --with-libgcrypt-dir="$(STAGING_DIR)/usr" \
- --with-ssl-dir="$(STAGING_DIR)/usr" \
- )
-endef
+CONFIGURE_VARS += \
+ CFLAGS="$(TARGET_CFLAGS) -std=gnu99 -Drestrict='' -DNO_DEBUG "
+
+CONFIGURE_ARGS += \
+ --disable-timelord \
+ --disable-a2boot \
+ --disable-cups \
+ --disable-tcp-wrappers \
+ --with-cnid-default-backend=dbd \
+ --with-bdb="$(STAGING_DIR)/usr/" \
+ --with-libgcrypt-dir="$(STAGING_DIR)/usr" \
+ --with-ssl-dir="$(STAGING_DIR)/usr"