From b904fd6967425c906e9d90837e2ba70d7db6beed Mon Sep 17 00:00:00 2001 From: Sanel Zukan Date: Wed, 7 Oct 2009 10:39:20 +0000 Subject: [PATCH] NetBSD requires explicit -lm for libstdc++ --- Jamconfig.in | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Jamconfig.in b/Jamconfig.in index 74bb241..08548ea 100644 --- a/Jamconfig.in +++ b/Jamconfig.in @@ -79,6 +79,11 @@ if $(SUN_COMPILER) { GLOBALFLAGS ?= $(WALL) $(PEDANTIC) -DHAVE_CONFIG_H -I$(TOP) $(OPTIMFLAGS) $(DEBUGFLAGS) $(LARGEFILEFLAGS) ; STDLIB ?= -lstdc++ ; +# NetBSD requires explicit -lm for libstdc++ +if $(OS) = "NETBSD" { + if $(STDLIB) = "-lstdc++" { $(STDLIB) += "-lm" ; } +} + # Note that REMOVE_UNUSED_DEPENDENCIES_TRICK _does not_ works when # edelib is compiled as shared library (or when is linked with some shared library) #REMOVE_UNUSED_DEPENDENCIES_TRICK = 1 ;