1
0

patch-src_Makefile_in 1.6 KB

1234567891011121314151617181920212223242526272829303132
  1. --- rp-pppoe-3.10.orig/src/Makefile.in 2008-06-30 16:00:42.000000000 +0200
  2. +++ rp-pppoe-3.10/src/Makefile.in 2011-01-16 22:17:53.000000000 +0100
  3. @@ -67,16 +67,16 @@ all: $(TARGETS)
  4. @echo "Type 'make install' as root to install the software."
  5. pppoe-sniff: pppoe-sniff.o if.o common.o debug.o
  6. - @CC@ -o pppoe-sniff pppoe-sniff.o if.o common.o debug.o
  7. + @CC@ $(LDFLAGS) -o pppoe-sniff pppoe-sniff.o if.o common.o debug.o
  8. pppoe-server: pppoe-server.o if.o debug.o common.o md5.o libevent/libevent.a @PPPOE_SERVER_DEPS@
  9. - @CC@ -o pppoe-server @RDYNAMIC@ pppoe-server.o if.o debug.o common.o md5.o $(PPPOE_SERVER_LIBS) -Llibevent -levent
  10. + @CC@ $(LDFLAGS) -o pppoe-server @RDYNAMIC@ pppoe-server.o if.o debug.o common.o md5.o $(PPPOE_SERVER_LIBS) ./libevent/libevent.a
  11. pppoe: pppoe.o if.o debug.o common.o ppp.o discovery.o
  12. - @CC@ -o pppoe pppoe.o if.o debug.o common.o ppp.o discovery.o
  13. + @CC@ $(LDFLAGS) -o pppoe pppoe.o if.o debug.o common.o ppp.o discovery.o
  14. pppoe-relay: relay.o if.o debug.o common.o
  15. - @CC@ -o pppoe-relay relay.o if.o debug.o common.o
  16. + @CC@ $(LDFLAGS) -o pppoe-relay relay.o if.o debug.o common.o
  17. pppoe.o: pppoe.c pppoe.h
  18. @CC@ $(CFLAGS) '-DVERSION="$(VERSION)"' -c -o pppoe.o pppoe.c
  19. @@ -113,7 +113,7 @@ relay.o: relay.c relay.h pppoe.h
  20. # Linux-specific plugin
  21. rp-pppoe.so: plugin/libplugin.a plugin/plugin.o
  22. - @CC@ -o rp-pppoe.so -shared plugin/plugin.o plugin/libplugin.a
  23. + @CC@ $(LDFLAGS) -o rp-pppoe.so -shared plugin/plugin.o plugin/libplugin.a
  24. plugin/plugin.o: plugin.c
  25. @CC@ '-DRP_VERSION="$(VERSION)"' $(CFLAGS) -I$(PPPD_INCDIR) -c -o plugin/plugin.o -fPIC plugin.c