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.
This commit is contained in:
parent
71221baca0
commit
253ba10bfb
4
Makefile
4
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)
|
||||
|
|
Loading…
Reference in New Issue