X-Git-Url: http://git.ozlabs.org/?a=blobdiff_plain;f=pppd%2Fplugins%2FMakefile.linux;h=af5384381cb07c27fa4043824f80b6ab69807fa9;hb=c9d9dbfb8459b528ab56bd1cf0c41460801bbfdf;hp=8a90e393a0578fd4885bfda0fabfd688735eeaf5;hpb=5e90783d11a59268e05f4cfb29ce2343b13e8ab2;p=ppp.git diff --git a/pppd/plugins/Makefile.linux b/pppd/plugins/Makefile.linux index 8a90e39..af53843 100644 --- a/pppd/plugins/Makefile.linux +++ b/pppd/plugins/Makefile.linux @@ -1,7 +1,7 @@ #CC = gcc COPTS = -O2 -g CFLAGS = $(COPTS) -I.. -I../../include -fPIC -LDFLAGS = -shared +LDFLAGS_SHARED = -shared INSTALL = install DESTDIR = $(INSTROOT)@DESTDIR@ @@ -30,7 +30,7 @@ all: $(PLUGINS) for d in $(SUBDIRS); do $(MAKE) $(MFLAGS) -C $$d all || exit $$?; done %.so: %.c - $(CC) -o $@ $(LDFLAGS) $(CFLAGS) $^ + $(CC) -o $@ $(LDFLAGS) $(LDFLAGS_SHARED) $(CFLAGS) $^ VERSION = $(shell awk -F '"' '/VERSION/ { print $$2; }' ../patchlevel.h)