From 13d66b6d24cc60e41b78c8f0f32013ea5bcab75d Mon Sep 17 00:00:00 2001 From: Adrien Destugues Date: Thu, 21 May 2020 10:47:14 +0200 Subject: [PATCH] Fix building on Haiku --- build/jam/BuildSetup | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/build/jam/BuildSetup b/build/jam/BuildSetup index 28199e1399..0b3bf757df 100644 --- a/build/jam/BuildSetup +++ b/build/jam/BuildSetup @@ -304,7 +304,10 @@ if $(HOST_ARCH) = m68k { if $(HOST_PLATFORM) != darwin { # fix for new changes to DSO linking policies - HOST_LINKFLAGS += -Xlinker --no-as-needed -Wl,--copy-dt-needed-entries ; + HOST_LINKFLAGS += -Xlinker --no-as-needed ; + if $(HOST_GCC_VERSION[1]) >= 3 { + HOST_LINKFLAGS += -Wl,--copy-dt-needed-entries ; + } }