Link host tools with libbsd on haiku host

Needed for the sparc port, allows to build elf2aout which uses err() and
errx(). Allows to build the sparc port from Haiku.

Change-Id: Ia14dd9b1be1c03b36634a675f1a51eeac8d4aacf
Reviewed-on: https://review.haiku-os.org/c/haiku/+/2129
Reviewed-by: waddlesplash <waddlesplash@gmail.com>
This commit is contained in:
Adrien Destugues 2020-01-19 13:01:57 +01:00 committed by waddlesplash
parent 992ae400ec
commit ca9fab6849

View File

@ -389,6 +389,7 @@ if $(HOST_PLATFORM_HAIKU_COMPATIBLE) {
HOST_ADD_BUILD_COMPATIBILITY_LIB_DIR
= "LIBRARY_PATH=\"$LIBRARY_PATH:$(HOST_BUILD_COMPATIBILITY_LIB_DIR)\"" ;
HOST_PTHREAD_LINKFLAGS = ;
HOST_LINKFLAGS += -lbsd ;
HOST_LIBRARY_NAME_MAP_input_server = /system/servers/input_server ;
HOST_DEFINES += __STDC_FORMAT_MACROS __STDC_LIMIT_MACROS ;