override cflags set to -O2 by configure
authorNicolas Thill <nico@openwrt.org>
Mon, 27 Mar 2006 22:00:12 +0000 (22:00 +0000)
committerNicolas Thill <nico@openwrt.org>
Mon, 27 Mar 2006 22:00:12 +0000 (22:00 +0000)
SVN-Revision: 3514

openwrt/package/libol/Makefile

index 9205184ca0791cd648c0ee7be42e43e8216585c3..f027a4259a20c8168991739b211c4c1b61cb8964 100644 (file)
@@ -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 $@