summaryrefslogtreecommitdiff
path: root/libc/Makeconfig
diff options
context:
space:
mode:
Diffstat (limited to 'libc/Makeconfig')
-rw-r--r--libc/Makeconfig6
1 files changed, 6 insertions, 0 deletions
diff --git a/libc/Makeconfig b/libc/Makeconfig
index a75ae7f50..7ad76f3db 100644
--- a/libc/Makeconfig
+++ b/libc/Makeconfig
@@ -958,6 +958,12 @@ libdl =
endif
endif
+ifeq ($(build-shared),yes)
+libm = $(common-objpfx)math/libm.so$(libm.so-version)
+else
+libm = $(common-objpfx)math/libm.a
+endif
+
# Generate a header file that #defines preprocessor symbols indicating
# which option groups are enabled. Note that the option-groups.config file
# may not exist at all.