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 <>
parent 70953e90
......@@ -69,8 +69,7 @@ endif
ifeq ($(HAVE_SELINUX),1)
LDFLAGS += -lselinux
SELIB += -lselinux
......@@ -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