File: 1003-custom-lib-names.patch

package info (click to toggle)
libssh 0.11.3-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 6,460 kB
  • sloc: ansic: 100,303; cpp: 421; sh: 186; makefile: 25; javascript: 20; python: 9
file content (36 lines) | stat: -rw-r--r-- 859 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
Description: Allow the buildsystem to overwrite libssh's OUTPUT_NAME.
Author: Sebastian Ramacher <s.ramacher@gmx.at>
Last-Update: 2012-06-19

--- a/src/CMakeLists.txt
+++ b/src/CMakeLists.txt
@@ -92,6 +92,11 @@ if (BUILD_STATIC_LIB)
   )
 endif (BUILD_STATIC_LIB)
 
+set(LIBSSH_LIBRARY_NAME
+  ssh
+  CACHE INTERNAL "libssh library name"
+)
+
 set(libssh_SRCS
   agent.c
   auth.c
@@ -345,6 +350,8 @@ set_target_properties(ssh
         ${LIBRARY_VERSION}
       SOVERSION
         ${LIBRARY_SOVERSION}
+      OUTPUT_NAME
+        ${LIBSSH_LIBRARY_NAME}
       DEFINE_SYMBOL
         LIBSSH_EXPORTS
 )
@@ -397,7 +404,7 @@ if (BUILD_STATIC_LIB)
         SOVERSION
           ${LIBRARY_SOVERSION}
         OUTPUT_NAME
-          ssh
+          ${LIBSSH_LIBRARY_NAME}
         ARCHIVE_OUTPUT_DIRECTORY
           ${CMAKE_CURRENT_BINARY_DIR}/${OUTPUT_SUFFIX}
   )