aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBjörn-Egil Dahlberg <[email protected]>2010-07-02 14:45:41 +0200
committerBjörn-Egil Dahlberg <[email protected]>2010-07-30 15:01:26 +0200
commitbd2b0feb47149be8247ca970ebb8c6e25d281634 (patch)
treedc3d5daa10a04f7fad318e3192ae61aafeaceb78
parent1d484d1c96dd5111c45e656d20b58f1ae5c24f59 (diff)
downloadotp-bd2b0feb47149be8247ca970ebb8c6e25d281634.tar.gz
otp-bd2b0feb47149be8247ca970ebb8c6e25d281634.tar.bz2
otp-bd2b0feb47149be8247ca970ebb8c6e25d281634.zip
Fix libm linking with --as-needed flag
When building with "--as-needed" linker flags on Linux the build will fail. This has now been fixed.
-rw-r--r--erts/etc/common/Makefile.in2
1 files changed, 1 insertions, 1 deletions
diff --git a/erts/etc/common/Makefile.in b/erts/etc/common/Makefile.in
index 6551b2999a..96655662b8 100644
--- a/erts/etc/common/Makefile.in
+++ b/erts/etc/common/Makefile.in
@@ -98,7 +98,7 @@ endif
ifeq ($(TARGET),win32)
ERTS_INTERNAL_LIBS=-L../../lib/internal/$(TARGET) -lerts_internal_r$(ERTS_LIB_TYPEMARKER) @ERTS_INTERNAL_X_LIBS@
else
-ERTS_INTERNAL_LIBS=-L../../lib/internal/$(TARGET) -lerts_internal$(ERTS_LIB_TYPEMARKER) @ERTS_INTERNAL_X_LIBS@
+ERTS_INTERNAL_LIBS=-L../../lib/internal/$(TARGET) -lerts_internal$(ERTS_LIB_TYPEMARKER) @ERTS_INTERNAL_X_LIBS@ -lm
endif
# ----------------------------------------------------