aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Makefile.FreeBSD3
-rw-r--r--Makefile.Linux3
-rw-r--r--Makefile.SunOS3
3 files changed, 9 insertions, 0 deletions
diff --git a/Makefile.FreeBSD b/Makefile.FreeBSD
index 018846be1e..7fa0f3d49c 100644
--- a/Makefile.FreeBSD
+++ b/Makefile.FreeBSD
@@ -22,6 +22,9 @@ PLATFORMLINKOPTS := -Wl,--export-dynamic
# stripped from the resultant binary.
PLATFORMSTRIPOPTS := -Wl,-x
+# PLATFORMLIBDL - FreeBSD does not have libdl; dlsym() is in libc.
+PLATFORMLIBDL :=
+
# Path to location for LLVM front-end for this architecture. This setting may
# be overriden by the Makefile.config option, and should not override it if set.
# (Using Linux GCC front-end for now.)
diff --git a/Makefile.Linux b/Makefile.Linux
index 553004d7a6..18b50c268d 100644
--- a/Makefile.Linux
+++ b/Makefile.Linux
@@ -22,6 +22,9 @@ PLATFORMLINKOPTS := -Wl,--export-dynamic
# stripped from the resultant binary.
PLATFORMSTRIPOPTS := -Wl,-x
+# PLATFORMLIBDL - Library that supports dlsym() et al.
+PLATFORMLIBDL := -ldl
+
# Path to location for LLVM front-end for this architecture. This setting may
# be overriden by the Makefile.config option, and should not override it if set.
#
diff --git a/Makefile.SunOS b/Makefile.SunOS
index c6508bf1ed..bc6b49fe77 100644
--- a/Makefile.SunOS
+++ b/Makefile.SunOS
@@ -24,6 +24,9 @@ PLATFORMLINKOPTS := -lmalloc
#
PLATFORMSTRIPOPTS :=
+# PLATFORMLIBDL - Library that supports dlsym() et al.
+PLATFORMLIBDL := -ldl
+
# Path to location for LLVM front-end for this architecture. This setting may
# be overriden by the Makefile.config option, and should not override it if set.
#