File: library-soversion.diff

package info (click to toggle)
ns3 3.46-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 105,864 kB
  • sloc: cpp: 624,863; python: 14,863; ansic: 6,772; makefile: 1,950; sh: 987; javascript: 167; perl: 102
file content (27 lines) | stat: -rw-r--r-- 958 bytes parent folder | download
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
Fix the properties of the libraries.
 - soname set to the ns-3.minor version
 - libname set to "ns3" without the version

---
 build-support/custom-modules/ns3-module-macros.cmake |    5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

--- a/build-support/custom-modules/ns3-module-macros.cmake
+++ b/build-support/custom-modules/ns3-module-macros.cmake
@@ -169,6 +169,7 @@
 
   # Create the module shared library
   add_library(${BLIB_LIBNAME} SHARED "${BLIB_SOURCE_FILES}")
+  set_target_properties(${BLIB_LIBNAME} PROPERTIES VERSION "46")
 
   # Set alias
   add_library(ns3::${BLIB_LIBNAME} ALIAS ${BLIB_LIBNAME})
@@ -233,7 +234,7 @@
   # set output name of library
   set_target_properties(
     ${BLIB_LIBNAME}
-    PROPERTIES OUTPUT_NAME ns${NS3_VER}-${BLIB_LIBNAME}${build_profile_suffix}
+    PROPERTIES OUTPUT_NAME ns3-${BLIB_LIBNAME}${build_profile_suffix}
   )
 
   # Export compile definitions as interface definitions, propagating local