File: soname.diff

package info (click to toggle)
oscpack 1.1.0-3
  • links: PTS
  • area: main
  • in suites: bookworm
  • size: 444 kB
  • sloc: cpp: 3,675; makefile: 116
file content (14 lines) | stat: -rw-r--r-- 462 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
Description: Add soname to library.
Author: Monty Taylor <mordred@inaugust.com>
Last-Update: 2011-01-08
--- a/Makefile
+++ b/Makefile
@@ -111,7 +111,7 @@
 	$(CXX) -dynamiclib -Wl,-install_name,$(LIBSONAME) -o $(LIBFILENAME) $(LIBOBJECTS) -lc
 else
 	#GNU/Linux case
-	$(CXX) -shared -Wl,-soname,$(LIBSONAME) -o $(LIBFILENAME) $(LIBOBJECTS) -lc
+	$(CXX) -shared -Wl,-soname,$(LIBSONAME).1 -o $(LIBFILENAME) $(LIBOBJECTS) -lc
 endif
 
 lib: $(LIBFILENAME)