aboutsummaryrefslogtreecommitdiffstats
path: root/testing/llvm6/cmake-fix-libLLVM-name.patch
diff options
context:
space:
mode:
authorJ0WI <J0WI@users.noreply.github.com>2019-02-27 00:02:32 +0100
committerNatanael Copa <ncopa@alpinelinux.org>2019-03-19 10:14:05 +0000
commitdb695fa462a77934f2c6f4ee835ad46963ad35c2 (patch)
tree82d1c3defc1cac17ab22b83e7aaa2e845eb96554 /testing/llvm6/cmake-fix-libLLVM-name.patch
parentb797f720d78062467908325d04f1c0b5c38f891f (diff)
downloadaports-db695fa462a77934f2c6f4ee835ad46963ad35c2.tar.bz2
aports-db695fa462a77934f2c6f4ee835ad46963ad35c2.tar.xz
testing/llvm6: new aport
Diffstat (limited to 'testing/llvm6/cmake-fix-libLLVM-name.patch')
-rw-r--r--testing/llvm6/cmake-fix-libLLVM-name.patch26
1 files changed, 26 insertions, 0 deletions
diff --git a/testing/llvm6/cmake-fix-libLLVM-name.patch b/testing/llvm6/cmake-fix-libLLVM-name.patch
new file mode 100644
index 0000000000..cb29fe2efc
--- /dev/null
+++ b/testing/llvm6/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)