[packages] fix openswan cross compile
authorJohn Crispin <john@openwrt.org>
Tue, 14 Aug 2012 13:30:33 +0000 (13:30 +0000)
committerJohn Crispin <john@openwrt.org>
Tue, 14 Aug 2012 13:30:33 +0000 (13:30 +0000)
SVN-Revision: 33185

net/openswan/patches/100-cross_compile.patch [new file with mode: 0644]

diff --git a/net/openswan/patches/100-cross_compile.patch b/net/openswan/patches/100-cross_compile.patch
new file mode 100644 (file)
index 0000000..63085d0
--- /dev/null
@@ -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