aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorThan Ngo <than@redhat.com>2004-05-13 21:53:32 +0000
committerThan Ngo <than@redhat.com>2004-05-13 21:53:32 +0000
commit72536a22e30682729b9f734a57e03c5281c5525e (patch)
treeaf6861b063a9c4fbdea1e70d1232b6f92b442f8e /src
parentc811f6dcfb22b3cf048a85e4bb33658109b5ab30 (diff)
downloadinitscripts-72536a22e30682729b9f734a57e03c5281c5525e.tar
initscripts-72536a22e30682729b9f734a57e03c5281c5525e.tar.gz
initscripts-72536a22e30682729b9f734a57e03c5281c5525e.tar.bz2
initscripts-72536a22e30682729b9f734a57e03c5281c5525e.tar.xz
initscripts-72536a22e30682729b9f734a57e03c5281c5525e.zip
enable PIE build of usernetctl
Diffstat (limited to 'src')
-rw-r--r--src/Makefile4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/Makefile b/src/Makefile
index 1c155765..7c1b87fa 100644
--- a/src/Makefile
+++ b/src/Makefile
@@ -62,9 +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
+
shvar.o: shvar.c
$(CC) $(CFLAGS) `pkg-config glib-2.0 --cflags` -c shvar.c -o shvar.o
ppp-watch.o: ppp-watch.c
$(CC) $(CFLAGS) `pkg-config glib-2.0 --cflags` -c ppp-watch.c -o ppp-watch.o
-