Hi,
Please review attached patch.
(related to PR pkg/47084)
Currently, there are many hard-coded /usr/include and /usr/lib
in mk/buildlink/bsd.buildlink3.mk.
It is not correct for Haiku.
* system header files are in /boot/develop/headers
* system library files are in /boot/system/lib
* additional header and libraries are in /boot/common/{include,lib}
It may also not correct for some optional development toolkit on other
platforms.
Attached patch introduce following variables:
In mk/platform/*.mk:
_OPSYS_INCLUDE_DIRS
list of system default include directories
_OPSYS_LIB_DIRS
list of system default library directories
In mk/bsd.prefs.mk (may be defined in mk/compiler/*.mk):
SYSTEM_DEFAULT_RPATH
colon separated list of system default rpath directories
(default value is _OPSYS_SYSTEM_RPATH, or /usr/lib)
COMPILER_INCLUDE_DIRS
list of compiler default include directories
(default value is _OPSYS_INCLUDE_DIRS, or /usr/include)
COMPILER_INCLUDE_DIRS
list of compiler default library directories
(default value is _OPSYS_LIB_DIRS, or /usr/lib)
Additionally, allow empty BUILDLINK_PREFIX.${_pkg_},
because as said above, Haiku's system header and library location
is not match such model.
I have no 64bit environment, so ${LIBABISUFFIX} may be missing
in some places.
--
OBATA Akio / obache%NetBSD.org@localhostAttachment:
prefix.patch
Description: Binary data