From: John Crispin Date: Tue, 14 Aug 2012 13:30:33 +0000 (+0000) Subject: [packages] fix openswan cross compile X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=0d56ee6093c5c1c9b1f32383b6e65ca593ed7a70;p=openwrt%2Fsvn-archive%2Farchive.git [packages] fix openswan cross compile SVN-Revision: 33185 --- diff --git a/net/openswan/patches/100-cross_compile.patch b/net/openswan/patches/100-cross_compile.patch new file mode 100644 index 0000000000..63085d0c31 --- /dev/null +++ b/net/openswan/patches/100-cross_compile.patch @@ -0,0 +1,30 @@ +Index: openswan-2.6.38/programs/pluto/Makefile +=================================================================== +--- openswan-2.6.38.orig/programs/pluto/Makefile 2012-03-23 22:33:43.000000000 +0100 ++++ openswan-2.6.38/programs/pluto/Makefile 2012-08-14 15:17:29.000000000 +0200 +@@ -58,10 +58,6 @@ + + ALLFLAGS = $(CPPFLAGS) $(CFLAGS) ${CROSSFLAGS} + +-ifneq ($(LD_LIBRARY_PATH),) +-LDFLAGS+=-L$(LD_LIBRARY_PATH) +-endif +- + LIBSADNS = $(OPENSWANLIB) + LIBSADNS += -lresolv # -lefence + +Index: openswan-2.6.38/programs/Makefile.program +=================================================================== +--- openswan-2.6.38.orig/programs/Makefile.program 2012-08-14 15:17:32.000000000 +0200 ++++ openswan-2.6.38/programs/Makefile.program 2012-08-14 15:17:38.000000000 +0200 +@@ -55,10 +55,6 @@ + + CFLAGS+= ${WERROR} + +-ifneq ($(LD_LIBRARY_PATH),) +-LDFLAGS=-L$(LD_LIBRARY_PATH) +-endif +- + ifeq ($(USE_DMALLOC),true) + CFLAGS+=-DDMALLOC + LIBS+= -ldmalloc