[packages] libmad: fix build failure on targets using -O2 optimizations (partially closes: #6974)
git-svn-id: svn://svn.openwrt.org/openwrt/packages@20699 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
parent
d8424789ee
commit
cf7f495c50
@ -48,15 +48,22 @@ endef
|
|||||||
|
|
||||||
TARGET_CFLAGS += $(FPIC)
|
TARGET_CFLAGS += $(FPIC)
|
||||||
|
|
||||||
define Build/Configure
|
CONFIGURE_ARGS+= \
|
||||||
$(call Build/Configure/Default, \
|
--enable-shared \
|
||||||
--enable-shared \
|
--enable-static \
|
||||||
--enable-static \
|
--enable-fpm="$(FPM)" \
|
||||||
--enable-fpm="$(FPM)" \
|
--disable-debugging \
|
||||||
--disable-debugging \
|
--enable-speed \
|
||||||
--enable-speed \
|
|
||||||
)
|
# XXX: configure is parsing and "optimizing" CFLAGS, adding unsupported
|
||||||
endef
|
# XXX: compiler args to it (like -fforce-mem)
|
||||||
|
# XXX: so pass an empty one to configure
|
||||||
|
CONFIGURE_VARS+= \
|
||||||
|
CFLAGS="" \
|
||||||
|
|
||||||
|
# XXX: and pass our own to make
|
||||||
|
MAKE_FLAGS+= \
|
||||||
|
CFLAGS="$(TARGET_CFLAGS)" \
|
||||||
|
|
||||||
define Build/InstallDev
|
define Build/InstallDev
|
||||||
$(INSTALL_DIR) $(1)/usr/include
|
$(INSTALL_DIR) $(1)/usr/include
|
||||||
|
Loading…
x
Reference in New Issue
Block a user