use $(TARGET_CFLAGS)
authorMike Frysinger <vapier@gentoo.org>
Mon, 11 Oct 2004 15:52:09 +0000 (15:52 -0000)
committerMike Frysinger <vapier@gentoo.org>
Mon, 11 Oct 2004 15:52:09 +0000 (15:52 -0000)
package/bzip2/bzip2.mk

index 95bd7941d5f105f5de144ca6039f05a440c0ef78..2bb395e52cfb2236f49c49fc4c14c4560098b055 100644 (file)
@@ -24,6 +24,8 @@ ifeq ($(BR2_LARGEFILE),y)
        $(SED) "s,^BIGFILES,#BIGFILES,g" $(BZIP2_DIR)/Makefile
        $(SED) "s,^BIGFILES,#BIGFILES,g" $(BZIP2_DIR)/Makefile-libbz2_so
 endif
+       $(SED) "s:-O2:$(TARGET_CFLAGS):" $(BZIP2_DIR)/Makefile
+       $(SED) "s:-O2:$(TARGET_CFLAGS):" $(BZIP2_DIR)/Makefile-libbz2_so
        touch $(BZIP2_DIR)/.unpacked
 
 $(STAGING_DIR)/lib/libbz2.so.1.0.2: $(BZIP2_DIR)/.unpacked