aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBill Nottingham <notting@redhat.com>2000-05-01 22:24:52 +0000
committerBill Nottingham <notting@redhat.com>2000-05-01 22:24:52 +0000
commitf9585b1a8cd924348ad18b390eb7de0994d744b2 (patch)
treedd26ee36f6a11e70f0d886f7f241dfea59c5a685
parentbe2dfde2925190f3d7496aad536f6fda876575e5 (diff)
downloadinitscripts-f9585b1a8cd924348ad18b390eb7de0994d744b2.tar
initscripts-f9585b1a8cd924348ad18b390eb7de0994d744b2.tar.gz
initscripts-f9585b1a8cd924348ad18b390eb7de0994d744b2.tar.bz2
initscripts-f9585b1a8cd924348ad18b390eb7de0994d744b2.tar.xz
initscripts-f9585b1a8cd924348ad18b390eb7de0994d744b2.zip
fixes to get the prototypes right
-rw-r--r--Makefile3
-rw-r--r--initscripts.spec2
-rw-r--r--src/Makefile2
3 files changed, 3 insertions, 4 deletions
diff --git a/Makefile b/Makefile
index 588b2ad9..c46717f5 100644
--- a/Makefile
+++ b/Makefile
@@ -4,8 +4,7 @@ VERSION=$(shell awk '/Version:/ { print $$2 }' initscripts.spec)
CVSTAG = r$(subst .,-,$(VERSION))
all:
- (cd src; make CFLAGS="$(CFLAGS)")
-
+ (cd src; make)
install:
mkdir -p $(ROOT)/etc/profile.d $(ROOT)/sbin $(ROOT)/usr/sbin
mkdir -p $(ROOT)/usr/man/man8
diff --git a/initscripts.spec b/initscripts.spec
index 6d6a2aa3..cddb1cba 100644
--- a/initscripts.spec
+++ b/initscripts.spec
@@ -28,7 +28,7 @@ deactivate most network interfaces.
%setup -q
%build
-make CFLAGS="$RPM_OPT_FLAGS"
+make
%install
rm -rf $RPM_BUILD_ROOT
diff --git a/src/Makefile b/src/Makefile
index f274897a..987609ea 100644
--- a/src/Makefile
+++ b/src/Makefile
@@ -1,4 +1,4 @@
-CFLAGS+=-Wall -D_GNU_SOURCE -g
+CFLAGS+=$(RPM_OPT_FLAGS) -Wall -D_GNU_SOURCE
PROGS=usernetctl doexec netreport testd usleep ipcalc initlog minilogd \
getkey ppp-watch consoletype