diff --git a/makefile.patch b/makefile.patch new file mode 100644 index 0000000..8c7d6d0 --- /dev/null +++ b/makefile.patch @@ -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