Don't add $(PREFIX)/include and $(PREFIX)/lib to toolchain paths
authorJames Le Cuirot <chewi@gentoo.org>
Sat, 31 Aug 2019 13:54:11 +0000 (14:54 +0100)
committerJames Le Cuirot <chewi@gentoo.org>
Sat, 31 Aug 2019 14:29:31 +0000 (15:29 +0100)
commit87002ca7ee9a270bce5015aa89b712689a312a47
tree25f3519ae3c06070c3991d708626524bd891c363
parentd28d1fbc1bff9a1e75c9e89643c8c2787b74acdd
Don't add $(PREFIX)/include and $(PREFIX)/lib to toolchain paths

PREFIX is only applicable at install and runtime. The headers and
libraries we're building against may not be in the same location,
particularly if we're cross-compiling. Adding -I/usr/include when
cross-compiling will likely break the build.

It is generally not necessary to add these paths anyway as toolchains
are already configured to look in the appropriate places for system
headers and libraries. There may be exceptions but these can be dealt
with via CFLAGS and LDFLAGS. Perhaps this is necessary for MacPorts
but I'm not familiar with it.
Makefile