aboutsummaryrefslogtreecommitdiffstats
path: root/src/build-data/cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/build-data/cc')
-rw-r--r--src/build-data/cc/clang.txt7
-rw-r--r--src/build-data/cc/gcc.txt7
-rw-r--r--src/build-data/cc/msvc.txt5
3 files changed, 19 insertions, 0 deletions
diff --git a/src/build-data/cc/clang.txt b/src/build-data/cc/clang.txt
index e0520d946..d9de36dba 100644
--- a/src/build-data/cc/clang.txt
+++ b/src/build-data/cc/clang.txt
@@ -32,6 +32,13 @@ default -> "$(CXX) -shared -fPIC -Wl,-soname,$(SONAME)"
darwin -> "$(CXX) -dynamiclib -fPIC -install_name $(LIBDIR)/$(SONAME)"
</so_link_flags>
+<binary_link_command>
+linux -> "$(LINKER) -Wl,-rpath=\$$ORIGIN"
+linux-debug -> "$(LINKER) -Wl,-rpath=\$$ORIGIN"
+default -> "$(LINKER)"
+default-debug -> "$(LINKER)"
+</binary_link_command>
+
<isa_flags>
sse2 -> "-msse2"
ssse3 -> "-mssse3"
diff --git a/src/build-data/cc/gcc.txt b/src/build-data/cc/gcc.txt
index 863e504a2..c0cb258fb 100644
--- a/src/build-data/cc/gcc.txt
+++ b/src/build-data/cc/gcc.txt
@@ -43,6 +43,13 @@ aix -> "$(CXX) -shared -fPIC"
openbsd -> "$(CXX) -shared -fPIC"
</so_link_flags>
+<binary_link_command>
+linux -> "$(LINKER) -Wl,-rpath=\$$ORIGIN"
+linux-debug -> "$(LINKER) -Wl,-rpath=\$$ORIGIN"
+default -> "$(LINKER)"
+default-debug -> "$(LINKER)"
+</binary_link_command>
+
<isa_flags>
sse2 -> "-msse2"
ssse3 -> "-mssse3"
diff --git a/src/build-data/cc/msvc.txt b/src/build-data/cc/msvc.txt
index 8c80cc9f0..30b795a57 100644
--- a/src/build-data/cc/msvc.txt
+++ b/src/build-data/cc/msvc.txt
@@ -40,6 +40,11 @@ default -> "$(LINKER) /DLL"
default-debug -> "$(LINKER) /DLL /DEBUG"
</so_link_flags>
+<binary_link_command>
+default -> "$(LINKER)"
+default-debug -> "$(LINKER) /DEBUG"
+</binary_link_command>
+
<mach_abi_linking>
all -> "/MD"
all-debug -> "/MDd"