Skip to contentSkip to conversation

Fix undefined references and bad include when build with junction support

PATCH New Lars Wendler 1 participant 1 message May 28, 2018

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Fix undefined references and bad include when build with junction support

---
 support/junction/Makefile.am | 2 +-
 utils/nfsref/Makefile.am     | 6 +++---
 2 files changed, 4 insertions(+), 4 deletions(-)
support/junction/Makefile.am +1 -1
index 97e7426..89cb532 100644
@@ -31,4 +31,4 @@ libjunction_la_SOURCES	= display.c export-cache.c junction.c \
 
 MAINTAINERCLEANFILES	= Makefile.in
 
-AM_CPPFLAGS		= -I. -I../include -I/usr/include/libxml2
+AM_CPPFLAGS		= -I. -I../include -I/usr/include/libxml2 @TIRPC_CFLAGS@
utils/nfsref/Makefile.am +3 -3
index 2b2bb53..a652b03 100644
@@ -27,13 +27,13 @@ noinst_HEADERS		= nfsref.h
 
 sbin_PROGRAMS		= nfsref
 nfsref_SOURCES		= add.c lookup.c nfsref.c remove.c
-LDADD			= $(LIBXML2) $(LIBCAP) \
-			  ../../support/nfs/libnfs.la \
+LIBS			+= $(LIBXML2) $(LIBCAP)
+LDADD			=  ../../support/nfs/libnfs.la \
 			  ../../support/junction/libjunction.la
 
 man8_MANS		= nfsref.man
 
 MAINTAINERCLEANFILES	= Makefile.in
 
-AM_CPPFLAGS		= -I. -I../../support/include
+AM_CPPFLAGS		= -I. -I../../support/include @TIRPC_CFLAGS@
 ##AM_LDFLAGS		= -Wl,--as-needed
Signature · 1 line
2.17.0