diff mbox

[2/3] build: Fix hidden glibc header file dependency

Message ID 20160412160024.935.53561.stgit@seurat.1015granger.net
State Accepted
Headers show

Commit Message

Chuck Lever April 12, 2016, 4 p.m. UTC
From: Thorsten Kukuk <kukuk@suse.de>

In fedfs-utils, there is one place where no "-I/usr/include/tirpc" is
used. As result, glibc sunrpc header files are used instead of tirpc
ones.

You can see that nicely, if you install a glibc with deprecated-rpc
option enabled: fedfs-utils will fail to build because of missing
rpc header files.

Signed-off-by: Thorsten Kukuk <kukuk@suse.de>
---
 src/libnsdb/Makefile.am |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff mbox

Patch

diff --git a/src/libnsdb/Makefile.am b/src/libnsdb/Makefile.am
index 9387dba..c98d0e7 100644
--- a/src/libnsdb/Makefile.am
+++ b/src/libnsdb/Makefile.am
@@ -35,4 +35,4 @@  DISTCLEANFILES		= Makefile.in
 AM_CFLAGS		= -ggdb -fstrict-aliasing \
 			  -Wall -Wextra -pedantic -Wformat=2 \
 			  -Wstrict-aliasing=2 -Wp,-D_FORTIFY_SOURCE=2
-AM_CPPFLAGS		= -I. -I$(top_srcdir)/src/include
+AM_CPPFLAGS		= -I. -I$(top_srcdir)/src/include -I/usr/include/tirpc