From: Michael Stapelberg Date: Sun, 8 Mar 2009 19:04:33 +0000 (+0100) Subject: Use -idirafter which is the same as -I but first looks at the standard system headers X-Git-Tag: 3.a~59 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=253ba10bfb994c34d14d071209f202bd2bdd1dc5;p=i3%2Fi3 Use -idirafter which is the same as -I but first looks at the standard system headers 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. --- 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)