File: library-soversion.diff

package info (click to toggle)
ns3 3.45-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 136,192 kB
  • sloc: cpp: 896,731; python: 17,621; ansic: 6,805; makefile: 2,657; sh: 1,123; javascript: 167; perl: 102
file content (27 lines) | stat: -rw-r--r-- 982 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

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

--- a/ns-3.45/build-support/custom-modules/ns3-module-macros.cmake
+++ b/ns-3.45/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 "45")
 
   # 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