]> git.sur5r.net Git - i3/i3/commitdiff
Use -idirafter which is the same as -I but first looks at the standard system headers
authorMichael Stapelberg <michael+git@stapelberg.de>
Sun, 8 Mar 2009 19:04:33 +0000 (20:04 +0100)
committerMichael Stapelberg <michael+git@stapelberg.de>
Sun, 8 Mar 2009 19:04:33 +0000 (20:04 +0100)
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

index e9e24072b2586930ceac6e1fcf6acc42f0b20f53..ed216c00724e1c9fd4eccf53f96347494bbe5918 100644 (file)
--- 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)