aboutsummaryrefslogtreecommitdiffstats
path: root/src/build-data/cc/clang.txt
diff options
context:
space:
mode:
authorSimon Warta <[email protected]>2015-07-17 12:28:56 +0200
committerSimon Warta <[email protected]>2015-07-21 20:08:04 +0200
commit8e9d312b21ee1214db1998a0b0057a7d10477d42 (patch)
tree478f8b3ef18e95f4aca98f2d91c58a3f28375583 /src/build-data/cc/clang.txt
parent2dae041a9b8299fe185c65b227433018f6622a17 (diff)
Add binary_link_command; Use compiler configs to set RPATH on Linux
Diffstat (limited to 'src/build-data/cc/clang.txt')
-rw-r--r--src/build-data/cc/clang.txt7
1 files changed, 7 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"