From 7965fc1383b42a2ea726d387a502458d03d2939c Mon Sep 17 00:00:00 2001 From: Sanel Zukan Date: Wed, 7 Oct 2009 10:44:40 +0000 Subject: [PATCH] Reverting previous changes. Added LIBM variable, so -lm can be used explicitly --- Jamconfig.in | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/Jamconfig.in b/Jamconfig.in index 08548ea..dd43175 100644 --- a/Jamconfig.in +++ b/Jamconfig.in @@ -78,11 +78,7 @@ if $(SUN_COMPILER) { # global flags used to be passed to every target 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" ; } -} +LIBM ?= -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)