From 92ab34a67efdd4a805a7f98753f5479fedd661f5 Mon Sep 17 00:00:00 2001 From: Than Ngo Date: Thu, 13 May 2004 22:29:00 +0000 Subject: add -fPIE --- src/Makefile | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/Makefile b/src/Makefile index 7c1b87fa..1ba3026d 100644 --- a/src/Makefile +++ b/src/Makefile @@ -62,8 +62,11 @@ usleep: $(USLEEP_OBJS) ppp-watch: $(PPPWATCH_OBJS) $(CC) $(LDFLAGS) -o $@ $(PPPWATCH_OBJS) -Wl,-Bstatic `pkg-config glib-2.0 --libs` -Wl,-Bdynamic -usernetctl: usernetctl.o - $(CC) $(LDFLAGS) -o $@ $< -pie +usernetctl.o: usernetctl.c + $(CC) $(CFLAGS) -fPIE -c usernetctl.c -o usernetctl.o + +usernetctl: usernetctl.c usernetctl.o + $(CC) $(LDFLAGS) -pie -o $@ $@.o shvar.o: shvar.c $(CC) $(CFLAGS) `pkg-config glib-2.0 --cflags` -c shvar.c -o shvar.o -- cgit v1.2.1