Commit 4fa49392 authored by Mike Frysinger's avatar Mike Frysinger

fix building with selinux enabled

Libs go into LIBS and after objects, not LDFLAGS.

We don't want to pass -DHAVE_SELINUX via the command line as the generated
config.h already defines it for us.
Signed-off-by: 's avatarMike Frysinger <vapier@gentoo.org>
parent 70953e90
......@@ -69,8 +69,7 @@ endif
NET_LIB = $(NET_LIB_PATH)/lib$(NET_LIB_NAME).a
ifeq ($(HAVE_SELINUX),1)
LDFLAGS += -lselinux
CFLAGS += -DHAVE_SELINUX
SELIB += -lselinux
endif
CPPFLAGS += -I. -I$(TOPDIR)/include -I$(NET_LIB_PATH)
......@@ -177,7 +176,7 @@ plipconfig: $(NET_LIB) plipconfig.o
$(CC) $(CFLAGS) $(LDFLAGS) -o $@ plipconfig.o $(NLIB)
netstat: $(NET_LIB) netstat.o statistics.o
$(CC) $(CFLAGS) $(LDFLAGS) -o $@ netstat.o statistics.o $(NLIB) $(RESLIB)
$(CC) $(CFLAGS) $(LDFLAGS) -o $@ netstat.o statistics.o $(NLIB) $(RESLIB) $(SELIB)
iptunnel: $(NET_LIB) iptunnel.o
$(CC) $(CFLAGS) $(LDFLAGS) -o $@ iptunnel.o $(NLIB) $(RESLIB)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment