aboutsummaryrefslogtreecommitdiffstats
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
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
-rw-r--r--initscripts.spec5
-rw-r--r--src/Makefile4
2 files changed, 7 insertions, 2 deletions
diff --git a/initscripts.spec b/initscripts.spec
index fa2bb99e..eab8db80 100644
--- a/initscripts.spec
+++ b/initscripts.spec
@@ -1,6 +1,6 @@
Summary: The inittab file and the /etc/init.d scripts.
Name: initscripts
-Version: 7.53
+Version: 7.54
License: GPL
Group: System Environment/Base
Release: 1
@@ -249,6 +249,9 @@ rm -rf $RPM_BUILD_ROOT
%ghost %attr(0664,root,utmp) /var/run/utmp
%changelog
+* Thu May 13 2004 Than Ngo <than@redhat.com> 7.54-1
+- add patch to enable PIE build of usernetctl
+
* Fri May 7 2004 Jeremy Katz <katzj@redhat.com> - 7.53-1
- little lvm tweak (#121963)
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
-