apr: cleanup, fix cflags
git-svn-id: svn://svn.openwrt.org/openwrt/packages@8266 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
parent
4c2d8c2825
commit
25366e3b45
@ -32,27 +32,23 @@ define Package/apr
|
|||||||
URL:=http://apr.apache.org/
|
URL:=http://apr.apache.org/
|
||||||
endef
|
endef
|
||||||
|
|
||||||
define Build/Configure
|
CONFIGURE_ARGS += \
|
||||||
$(call Build/Configure/Default, \
|
|
||||||
--with-devrandom=/dev/urandom \
|
--with-devrandom=/dev/urandom \
|
||||||
--disable-dso \
|
--disable-dso \
|
||||||
--disable-ipv6 \
|
--disable-ipv6
|
||||||
, \
|
|
||||||
|
CONFIGURE_VARS += \
|
||||||
ac_cv_file__dev_zero=yes \
|
ac_cv_file__dev_zero=yes \
|
||||||
apr_cv_process_shared_works=no \
|
apr_cv_process_shared_works=no \
|
||||||
apr_cv_mutex_robust_shared=no \
|
apr_cv_mutex_robust_shared=no \
|
||||||
apr_cv_tcp_nodelay_with_cork=yes \
|
apr_cv_tcp_nodelay_with_cork=yes \
|
||||||
ac_cv_sizeof_ssize_t=4 \
|
ac_cv_sizeof_ssize_t=4 \
|
||||||
LDFLAGS="-lpthread -L$(STAGING_DIR)/lib" \
|
LDFLAGS="-lpthread -L$(STAGING_DIR)/lib" \
|
||||||
CFLAGS="-I$(STAGING_DIR)/include" \
|
CFLAGS="-I$(STAGING_DIR)/include $(TARGET_CFLAGS)"
|
||||||
)
|
|
||||||
endef
|
|
||||||
|
|
||||||
define Build/Compile
|
MAKE_FLAGS += \
|
||||||
$(MAKE) -C $(PKG_BUILD_DIR) \
|
DESTDIR="$(PKG_INSTALL_DIR)" \
|
||||||
DESTDIR="$(PKG_INSTALL_DIR)" \
|
all install
|
||||||
all install
|
|
||||||
endef
|
|
||||||
|
|
||||||
define Build/InstallDev
|
define Build/InstallDev
|
||||||
mkdir -p $(STAGING_DIR)/usr/bin
|
mkdir -p $(STAGING_DIR)/usr/bin
|
||||||
|
Loading…
x
Reference in New Issue
Block a user