diff options
author | Simon Warta <[email protected]> | 2015-07-17 12:28:56 +0200 |
---|---|---|
committer | Simon Warta <[email protected]> | 2015-07-21 20:08:04 +0200 |
commit | 8e9d312b21ee1214db1998a0b0057a7d10477d42 (patch) | |
tree | 478f8b3ef18e95f4aca98f2d91c58a3f28375583 /src/build-data | |
parent | 2dae041a9b8299fe185c65b227433018f6622a17 (diff) |
Add binary_link_command; Use compiler configs to set RPATH on Linux
Diffstat (limited to 'src/build-data')
-rw-r--r-- | src/build-data/cc/clang.txt | 7 | ||||
-rw-r--r-- | src/build-data/cc/gcc.txt | 7 | ||||
-rw-r--r-- | src/build-data/cc/msvc.txt | 5 |
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" |