summaryrefslogtreecommitdiffstats
path: root/openwrt/package
diff options
context:
space:
mode:
Diffstat (limited to 'openwrt/package')
-rw-r--r--openwrt/package/libol/Makefile2
1 files changed, 2 insertions, 0 deletions
diff --git a/openwrt/package/libol/Makefile b/openwrt/package/libol/Makefile
index 9205184ca..f027a4259 100644
--- a/openwrt/package/libol/Makefile
+++ b/openwrt/package/libol/Makefile
@@ -52,7 +52,9 @@ $(PKG_BUILD_DIR)/.configured:
$(PKG_BUILD_DIR)/.built:
rm -rf $(PKG_INSTALL_DIR)
mkdir -p $(PKG_INSTALL_DIR)
+ # pass CFLAGS again to override -O2 set by configure
$(MAKE) -C $(PKG_BUILD_DIR) \
+ CFLAGS="$(TARGET_CFLAGS)" \
DESTDIR="$(PKG_INSTALL_DIR)" \
all install
touch $@