From 668c52a0a49be96ea975487bbc9812f55f85daca Mon Sep 17 00:00:00 2001 From: John Crispin Date: Tue, 14 Aug 2012 13:30:33 +0000 Subject: [PATCH] fix openswan cross compile SVN-Revision: 33185 --- net/openswan/patches/100-cross_compile.patch | 30 ++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 net/openswan/patches/100-cross_compile.patch diff --git a/net/openswan/patches/100-cross_compile.patch b/net/openswan/patches/100-cross_compile.patch new file mode 100644 index 000000000..63085d0c3 --- /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 -- 2.30.2