summaryrefslogtreecommitdiff
path: root/user/ppp/85_all_dhcp-make-vars.patch
blob: 68af3aaf30f555d42cffda1c4f2f4f63c83163cd (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
--- ppp-2.4.3/pppd/plugins/dhcp/Makefile.linux
+++ ppp-2.4.3/pppd/plugins/dhcp/Makefile.linux
@@ -1,6 +1,6 @@
 
 PLUGIN=dhcpc.so
-CFLAGS=-I../.. -I../../../include -O2
+CFLAGS=$(COPTS) -I../.. -I../../../include -fPIC
 
 all: $(PLUGIN)
 
@@ -9,7 +9,7 @@
 	$(INSTALL) -s -c -m 755 dhcpc.so $(LIBDIR)
 
 dhcpc.so: dhcpc.o clientpacket.o packet.o socket.o options.o 
-	gcc -o dhcpc.so -shared dhcpc.o clientpacket.o packet.o socket.o options.o
+	$(CC) $(LDFLAGS) $(CFLAGS) -o $@ $^
 
 
 clean: