From 9d2f4392e0b50bae5d3883d4052b103e33598769 Mon Sep 17 00:00:00 2001 From: Lukas Nykryn Date: Thu, 26 Mar 2015 14:46:56 +0100 Subject: [PATCH 5/6] Makefile: fix wrongly behaving LDFLAGS --- Makefile | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Makefile b/Makefile index cde8811..7603ce4 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 -- 1.8.3.1