From 8a58b4337a9f415da9c578d13edbd9b72f647947 Mon Sep 17 00:00:00 2001 From: Russ Allbery Date: Mon, 12 Jun 2006 19:47:52 +0000 Subject: [PATCH] Never return -I/usr/include from --cflags. It's already in the default compiler search path, causes gcc warnings, and can cause obscure failures with gcc by including system headers before gcc's internal headers. Ticket: 3011 Version_Reported: 1.4.2 git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@18116 dc483132-0cff-0310-8789-dd5450dbe970 --- src/krb5-config.in | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/krb5-config.in b/src/krb5-config.in index dc9baa465..cf2be4947 100755 --- a/src/krb5-config.in +++ b/src/krb5-config.in @@ -166,7 +166,11 @@ if test -n "$do_exec_prefix"; then fi if test -n "$do_cflags"; then - echo "-I${includedir}" + if test x"$includedir" != x"/usr/include" ; then + echo "-I${includedir}" + else + echo '' + fi fi -- 2.26.2