Fix logrotate compilation
authorFlorian Fainelli <florian@openwrt.org>
Wed, 5 Sep 2007 13:14:37 +0000 (13:14 +0000)
committerFlorian Fainelli <florian@openwrt.org>
Wed, 5 Sep 2007 13:14:37 +0000 (13:14 +0000)
SVN-Revision: 8627

utils/logrotate/Makefile

index 51f8380..e6b8195 100644 (file)
@@ -43,9 +43,12 @@ define Package/logrotate/conffiles
 /etc/logrotate.conf
 endef
 
+EXTRA_CFLAGS += -I$(STAGING_DIR)/usr/include -I$(STAGING_DIR)/include
+EXTRA_LDFLAGS += -L$(STAGING_DIR)/usr/lib
+
 define Build/Compile
        $(call Build/Compile/Default, \
-               RPM_OPT_FLAGS="$(TARGET_CFLAGS) $(EXTRA_CPPFLAGS)" \
+               RPM_OPT_FLAGS:="$(TARGET_CFLAGS) $(EXTRA_CFLAGS)" \
                LDFLAGS="$(EXTRA_LDFLAGS)" \
                logrotate \
        )