From: Arne Fitzenreiter Date: Sun, 26 Jul 2009 13:36:32 +0000 (+0200) Subject: Fix strongwan build with gcc4.4.x X-Git-Url: http://git.ipfire.org/?p=ipfire-3.x.git;a=commitdiff_plain;h=48ee177fb79ed7d2d4b6c586fd3190b99f3fbdde Fix strongwan build with gcc4.4.x --- diff --git a/lfs/strongswan b/lfs/strongswan index 5ebe84188..352174f1d 100644 --- a/lfs/strongswan +++ b/lfs/strongswan @@ -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) && \