summaryrefslogtreecommitdiff
path: root/package/l2tpns/patches/patch-Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'package/l2tpns/patches/patch-Makefile')
-rw-r--r--package/l2tpns/patches/patch-Makefile37
1 files changed, 37 insertions, 0 deletions
diff --git a/package/l2tpns/patches/patch-Makefile b/package/l2tpns/patches/patch-Makefile
new file mode 100644
index 000000000..4065c2981
--- /dev/null
+++ b/package/l2tpns/patches/patch-Makefile
@@ -0,0 +1,37 @@
+$Id: update-patches 24 2008-08-31 14:56:13Z wbx $
+--- l2tpns-2.1.21.orig/Makefile 2005-12-07 06:21:37.000000000 +0100
++++ l2tpns-2.1.21/Makefile 2009-05-29 17:48:31.886728540 +0200
+@@ -10,18 +10,11 @@ DEFINES =
+ DEFINES += -DLIBDIR='"$(libdir)"'
+ DEFINES += -DETCDIR='"$(etcdir)"'
+
+-OPTIM =
+-OPTIM += -g
+-OPTIM += -O3
+-
+-CC = gcc
+-LD = gcc
+ INCLUDES = -I.
+ CPPFLAGS = $(INCLUDES) $(DEFINES)
+-CFLAGS = -Wall -Wformat-security -Wno-format-zero-length $(OPTIM)
+-LDFLAGS =
++CFLAGS ?= -Wall -Wformat-security -Wno-format-zero-length
+ LDLIBS =
+-INSTALL = install -c -D -o root -g root
++INSTALL = install -c -D
+
+ l2tpns.LIBS = -lm -lcli -ldl
+
+@@ -58,10 +51,10 @@ depend:
+ mv Makefile.tmp Makefile
+
+ l2tpns: $(OBJS)
+- $(LD) $(LDFLAGS) -o $@ $^ $(LDLIBS) $($@.LIBS)
++ $(CC) $(LDFLAGS) -o $@ $^ $(LDLIBS) $($@.LIBS)
+
+ nsctl: nsctl.o control.o
+- $(LD) $(LDFLAGS) -o $@ $^ $(LDLIBS) $($@.LIBS)
++ $(CC) $(LDFLAGS) -o $@ $^ $(LDLIBS) $($@.LIBS)
+
+ %.o: %.c
+ $(CC) $(CFLAGS) $(CPPFLAGS) -c -o $@ $<