add forgotten patch
This commit is contained in:
parent
d62e956556
commit
6f08b635db
28
makefile.patch
Normal file
28
makefile.patch
Normal file
@ -0,0 +1,28 @@
|
||||
diff --git a/Makefile b/Makefile
|
||||
index b6bd711..a3af283 100644
|
||||
--- a/Makefile
|
||||
+++ b/Makefile
|
||||
@@ -2,7 +2,7 @@ VERSION=$(shell awk '/Version:/ { print $$2 }' chkconfig.spec)
|
||||
TAG = chkconfig-$(VERSION)
|
||||
|
||||
CFLAGS=-g -Wall $(RPM_OPT_FLAGS) -D_GNU_SOURCE
|
||||
-LDFLAGS+=-g -lselinux -lsepol
|
||||
+LDFLAGS+=-g
|
||||
MAN=chkconfig.8 ntsysv.8 alternatives.8
|
||||
PROG=chkconfig
|
||||
BINDIR = /sbin
|
||||
@@ -24,12 +24,12 @@ subdirs:
|
||||
done && test -z "$$fail"
|
||||
|
||||
chkconfig: $(OBJS)
|
||||
- $(CC) $(LDFLAGS) -o chkconfig $(OBJS) -lpopt
|
||||
+ $(CC) $(LDFLAGS) -lselinux -lsepol -o chkconfig $(OBJS) -lpopt
|
||||
|
||||
alternatives: alternatives.o
|
||||
|
||||
ntsysv: $(NTOBJS)
|
||||
- $(CC) $(LDFLAGS) -o ntsysv $(NTOBJS) -lnewt -lpopt $(LIBMHACK)
|
||||
+ $(CC) $(LDFLAGS) -lselinux -lsepol -o ntsysv $(NTOBJS) -lnewt -lpopt $(LIBMHACK)
|
||||
|
||||
chkconfig.o: chkconfig.c leveldb.h
|
||||
$(CC) $(CFLAGS) -DVERSION=\"$(VERSION)\" -c chkconfig.c
|
||||
Loading…
Reference in New Issue
Block a user