override cflags set to -O2 by configure
[openwrt.git] / package / libol / Makefile
index e614fa2..f027a42 100644 (file)
@@ -7,7 +7,7 @@ PKG_VERSION:=0.3.17
 PKG_RELEASE:=1
 PKG_MD5SUM:=28cc52e84bdb472b7830f9ad120a62a7
 
 PKG_RELEASE:=1
 PKG_MD5SUM:=28cc52e84bdb472b7830f9ad120a62a7
 
-PKG_SOURCE_URL:=http://www.balabit.com/downloads/libol/0.3/
+PKG_SOURCE_URL:=http://www.balabit.com/downloads/libol/0.3
 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
 PKG_CAT:=zcat
 
 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
 PKG_CAT:=zcat
 
@@ -52,7 +52,9 @@ $(PKG_BUILD_DIR)/.configured:
 $(PKG_BUILD_DIR)/.built:
        rm -rf $(PKG_INSTALL_DIR)
        mkdir -p $(PKG_INSTALL_DIR)
 $(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) \
        $(MAKE) -C $(PKG_BUILD_DIR) \
+               CFLAGS="$(TARGET_CFLAGS)" \
                DESTDIR="$(PKG_INSTALL_DIR)" \
                all install
        touch $@
                DESTDIR="$(PKG_INSTALL_DIR)" \
                all install
        touch $@
This page took 0.023099 seconds and 4 git commands to generate.