From 3cb6104e08a5555b081d147136ff38ea3dcf0f21 Mon Sep 17 00:00:00 2001 From: Fredrik Holmqvist Date: Sat, 10 Dec 2011 16:02:47 +0100 Subject: [PATCH] libbe_build has references to math functions so on platforms that has them defined in lib m include it. This allows Haiku to be built with gold as host linker. --- src/build/libbe/Jamfile | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/build/libbe/Jamfile b/src/build/libbe/Jamfile index 68d2afb16d..c24d8121f5 100644 --- a/src/build/libbe/Jamfile +++ b/src/build/libbe/Jamfile @@ -5,6 +5,11 @@ USES_BE_API on libbe_build.so = true ; # locate the library MakeLocate libbe_build.so : $(HOST_BUILD_COMPATIBILITY_LIB_DIR) ; +local osLibs ; +if ! $(HOST_PLATFORM) in $(HAIKU_BEOS_COMPATIBLE_PLATFORMS) { + osLibs = m ; +} + BuildPlatformSharedLibrary libbe_build.so : # no sources here : @@ -13,7 +18,7 @@ BuildPlatformSharedLibrary libbe_build.so : storage_kit.o support_kit.o - $(HOST_LIBSUPC++) $(HOST_LIBSTDC++) + $(HOST_LIBSUPC++) $(HOST_LIBSTDC++) $(osLibs) ; SubInclude HAIKU_TOP src build libbe app ;