]> git.ipfire.org Git - ipfire-3.x.git/commitdiff
Added a patch to iproute2 that it accepts the cflags.
authorMichael Tremer <michael.tremer@ipfire.org>
Mon, 13 Apr 2009 13:57:21 +0000 (15:57 +0200)
committerMichael Tremer <michael.tremer@ipfire.org>
Mon, 13 Apr 2009 13:57:21 +0000 (15:57 +0200)
lfs/iproute2

index 62a9a890d8b3ba7ea5ae08326f5f7b2ca5f2cf78..236c727a8a5c3bfafa5119570ff5a4f7809e3d47 100644 (file)
@@ -25,7 +25,7 @@
 include Config
 
 PKG_NAME   = iproute2
-PKG_VER    = 2.6.28
+PKG_VER    = 2.6.29-1
 PKG_REL    = 0
 
 THISAPP    = $(PKG_NAME)-$(PKG_VER)
@@ -54,7 +54,8 @@ endef
 # Top-level Rules
 ###############################################################################
 
-objects = $(DL_FILE)
+objects = $(DL_FILE) \
+       $(THISAPP)-opt_flags.patch
 
 download: $(objects)
 
@@ -76,9 +77,10 @@ $(objects):
 $(OBJECT): $(objects)
        @$(PREBUILD)
        @rm -rf $(DIR_APP) && cd $(DIR_SRC) && $(EXTRACTOR) $(DIR_DL)/$(DL_FILE)
+       cd $(DIR_APP) && patch -Np2 -i $(DIR_PATCHES)/$(THISAPP)-opt_flags.patch
        cd $(DIR_APP) && sed -i -e "s@DESTDIR=.*@DESTDIR=@" \
                                -e "s@/share/@/usr/share/@g" Makefile
-       cd $(DIR_APP) && make $(PARALLELISMFLAGS)
+       cd $(DIR_APP) && make OPT_FLAGS="$(CFLAGS)" $(PARALLELISMFLAGS)
        cd $(DIR_APP) && make install
        cd $(DIR_APP) && mv -v /sbin/arpd /usr/sbin
        @rm -rf $(DIR_APP)