BuildSetup: Link against -ldl as well as -lm on non-Haiku.

Fixes the build of libpackage_build following Curl dependency removal.

Change-Id: Idd08fc1c099ba19c6b46c447686f36ce0b35652a
Reviewed-on: https://review.haiku-os.org/605
Reviewed-by: waddlesplash <waddlesplash@gmail.com>
This commit is contained in:
waddlesplash 2018-09-29 23:23:42 -04:00
parent e4ae6cb42f
commit 1a7a96606c
1 changed files with 1 additions and 1 deletions

View File

@ -421,7 +421,7 @@ if $(HOST_PLATFORM_BEOS_COMPATIBLE) {
HOST_CCFLAGS += $(compatibilityHeader) ;
HOST_C++FLAGS += $(compatibilityHeader) ;
} else {
HOST_LINKFLAGS += -lm ;
HOST_LINKFLAGS += -lm -ldl ;
HOST_LIBSTDC++ = stdc++ ;
if $(HOST_PLATFORM) = cygwin {
HOST_ADD_BUILD_COMPATIBILITY_LIB_DIR