]> git.ipfire.org Git - ipfire-3.x.git/commitdiff
Fix strongwan build with gcc4.4.x
authorArne Fitzenreiter <arne_f@ipfire.org>
Sun, 26 Jul 2009 13:36:32 +0000 (15:36 +0200)
committerArne Fitzenreiter <arne_f@ipfire.org>
Sun, 26 Jul 2009 13:36:32 +0000 (15:36 +0200)
lfs/strongswan

index 5ebe84188cbf8f214165326e92818e049d98f12c..352174f1df4b02bd9139553042f0c48f990b685f 100644 (file)
@@ -57,7 +57,8 @@ endef
 # Top-level Rules
 ###############################################################################
 
-objects = $(DL_FILE)
+objects = $(DL_FILE) \
+       $(THISAPP)-gcc44-inline-fix.patch
 
 download: $(objects)
 
@@ -82,6 +83,11 @@ $(objects):
 $(OBJECT): $(objects)
        @$(PREBUILD)
        @rm -rf $(DIR_APP) && cd $(DIR_SRC) && $(EXTRACTOR) $(DIR_DL)/$(DL_FILE)
+
+       # Patch for gcc4.4.x
+       cd $(DIR_APP) && patch -Np1 -i \
+               $(DIR_PATCHES)/$(THISAPP)-gcc44-inline-fix.patch
+
        cd $(DIR_APP) && for i in $$(find . -name "*.[ch]"); do \
                                                sed -e "s/getline/_&/g" -i $$i; done
        cd $(DIR_APP) && \