aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThan Ngo <than@redhat.com>2004-05-13 22:29:00 +0000
committerThan Ngo <than@redhat.com>2004-05-13 22:29:00 +0000
commit92ab34a67efdd4a805a7f98753f5479fedd661f5 (patch)
treeeef316f56927f4c40fb0a0669cd9cf0d8be5e793
parent72536a22e30682729b9f734a57e03c5281c5525e (diff)
downloadinitscripts-92ab34a67efdd4a805a7f98753f5479fedd661f5.tar
initscripts-92ab34a67efdd4a805a7f98753f5479fedd661f5.tar.gz
initscripts-92ab34a67efdd4a805a7f98753f5479fedd661f5.tar.bz2
initscripts-92ab34a67efdd4a805a7f98753f5479fedd661f5.tar.xz
initscripts-92ab34a67efdd4a805a7f98753f5479fedd661f5.zip
add -fPIEr7-54
-rw-r--r--src/Makefile7
1 files changed, 5 insertions, 2 deletions
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