aboutsummaryrefslogtreecommitdiffstats
path: root/testing/llvm4/cmake-fix-libLLVM-name.patch
diff options
context:
space:
mode:
authorJakub Jirutka <jakub@jirutka.cz>2017-04-16 16:33:54 +0200
committerJakub Jirutka <jakub@jirutka.cz>2017-04-16 16:34:25 +0200
commit7e22dd2591b85fedcf2e3741951af6c3ea568ec0 (patch)
treefcb23c49c1ac6d82a0e54d2edc375472791e8d67 /testing/llvm4/cmake-fix-libLLVM-name.patch
parent5abf2d291e5569eb1487d7465c2711609c15806e (diff)
downloadaports-7e22dd2591b85fedcf2e3741951af6c3ea568ec0.tar.bz2
aports-7e22dd2591b85fedcf2e3741951af6c3ea568ec0.tar.xz
testing/llvm4: new aport
http://llvm.org/ Low Level Virtual Machine compiler system (version 4)
Diffstat (limited to 'testing/llvm4/cmake-fix-libLLVM-name.patch')
-rw-r--r--testing/llvm4/cmake-fix-libLLVM-name.patch26
1 files changed, 26 insertions, 0 deletions
diff --git a/testing/llvm4/cmake-fix-libLLVM-name.patch b/testing/llvm4/cmake-fix-libLLVM-name.patch
new file mode 100644
index 0000000000..cb29fe2efc
--- /dev/null
+++ b/testing/llvm4/cmake-fix-libLLVM-name.patch
@@ -0,0 +1,26 @@
+Include version in name of shared libs
+
+libLLVM.so -> libLLVM-$MAJOR.$MINOR.so
+
+Source: http://pkgs.fedoraproject.org/cgit/rpms/llvm3.9.git/tree/llvm-soversion.patch?id=3dac83eaa5b88f550ae50125b14b8f644e10617b
+--- a/cmake/modules/AddLLVM.cmake
++++ b/cmake/modules/AddLLVM.cmake
+@@ -450,6 +450,18 @@
+ PREFIX ""
+ )
+ endif()
++
++ # Set SOVERSION on shared libraries that lack explicit SONAME
++ # specifier, on *nix systems that are not Darwin.
++ if(UNIX AND NOT APPLE AND NOT ARG_SONAME)
++ set_target_properties(${name}
++ PROPERTIES
++ # Concatenate the version numbers since ldconfig expects exactly
++ # one component indicating the ABI version, while LLVM uses
++ # major+minor for that.
++ SOVERSION ${LLVM_VERSION_MAJOR}.${LLVM_VERSION_MINOR}
++ VERSION ${LLVM_VERSION_MAJOR}.${LLVM_VERSION_MINOR}.${LLVM_VERSION_PATCH}${LLVM_VERSION_SUFFIX})
++ endif()
+ endif()
+
+ if(ARG_MODULE OR ARG_SHARED)