From 253ba10bfb994c34d14d071209f202bd2bdd1dc5 Mon Sep 17 00:00:00 2001 From: Michael Stapelberg Date: Sun, 8 Mar 2009 20:04:33 +0100 Subject: [PATCH] Use -idirafter which is the same as -I but first looks at the standard system headers MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit As iconv(3) is in NetBSD’s libc but the GNU version can be installed to /usr/pkg, searching /usr/pkg/include before /usr/include (standard behaviour with -I) is not a good idea. --- Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index e9e24072..ed216c00 100644 --- a/Makefile +++ b/Makefile @@ -15,8 +15,8 @@ LDFLAGS += -lxcb-xinerama LDFLAGS += -lX11 LDFLAGS += -L/usr/local/lib -L/usr/pkg/lib ifeq ($(UNAME),NetBSD) -CFLAGS += -I/usr/pkg/include -LDFLAGS += -liconv -Wl,-rpath,/usr/local/lib -Wl,-rpath,/usr/pkg/lib +CFLAGS += -idirafter /usr/pkg/include +LDFLAGS += -Wl,-rpath,/usr/local/lib -Wl,-rpath,/usr/pkg/lib endif ifeq ($(UNAME),Linux) -- 2.39.5