packages/net/ptunnel/patches/002-no_selinux.patch

21 lines
562 B
Diff
Raw Normal View History

--- a/Makefile
+++ b/Makefile
@@ -32,7 +32,7 @@ install: ptunnel
install ./ptunnel.8 $(mandir)/ptunnel.8
ptunnel: $(PT_OBJS)
- $(CC) -o $@ $^ $(LDOPTS) `[ -e /usr/include/selinux/selinux.h ] && echo -lselinux`
+ $(CC) -o $@ $^ $(LDOPTS)
ptunnel.exe: $(WIN32_PT_OBJS)
$(CC) -o $@ $^ $(WIN32_LDOPTS)
@@ -47,7 +47,7 @@ depend: .depend
$(CC) $(CFLAGS) -MM *.c > $@
%.o:%.c
- $(CC) $(CFLAGS) `[ -e /usr/include/selinux/selinux.h ] && echo -DHAVE_SELINUX` -c -o $@ $<
+ $(CC) $(CFLAGS) -c -o $@ $<
%.obj:%.c
$(WIN32_CC) $(WIN32_CFLAGS) -c -o $@ $<