diff --git a/src/Makefile.am b/src/Makefile.am
index 29e7d92122010a7bba401b8cb8b24d289e24da6e..c26688395091ba84e99ed3e8cccd67b401505b4c 100644 (file)
--- a/src/Makefile.am
+++ b/src/Makefile.am
noping_SOURCES = oping.c
noping_CPPFLAGS = $(AM_CPPFLAGS) -DUSE_NCURSES=1
-noping_LDADD = liboping.la -lm -lncurses
+noping_LDADD = liboping.la -lm -lncursesw
if BUILD_WITH_LIBRT
noping_LDADD += -lrt
endif
@if test "x0" = "x$$UID"; then \
if test "xLinux" = "x`uname -s`"; then \
echo "Setting CAP_NET_RAW capability on binaries."; \
- setcap cap_net_raw=ep $(DESTDIR)$(bindir)/oping; \
- setcap cap_net_raw=ep $(DESTDIR)$(bindir)/noping; \
+ setcap cap_net_raw=ep $(DESTDIR)$(bindir)/oping || true; \
+ setcap cap_net_raw=ep $(DESTDIR)$(bindir)/noping || true; \
else \
echo "Setting set-UID bit on binaries."; \
- chmod u+s $(DESTDIR)$(bindir)/oping; \
- chmod u+s $(DESTDIR)$(bindir)/noping; \
+ chmod u+s $(DESTDIR)$(bindir)/oping || true; \
+ chmod u+s $(DESTDIR)$(bindir)/noping || true; \
fi; \
fi