File: fix-linkage-against-dl.patch

package info (click to toggle)
audacity 2.2.2-1
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 129,312 kB
  • sloc: ansic: 373,350; cpp: 276,880; sh: 56,060; python: 18,922; makefile: 10,309; lisp: 8,365; xml: 1,888; perl: 1,798; java: 1,551; asm: 545; pascal: 395; sed: 58; awk: 35
file content (30 lines) | stat: -rw-r--r-- 1,203 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
Description: Fix linkage against dl for hostsdk library.
 src/vamp-hostsdk/PluginLoader.cpp uses the dlopen function. On some platforms
 you have to link against dl for this function. configure checks for dlopen
 and adds -ldl to LIBS if you have to link against dl. We need to pass this
 LIBS variable when linking the hostsdk library.

Index: Makefile.in
===================================================================
--- Makefile.in	(revision 12949)
+++ Makefile.in	(working copy)
@@ -61,6 +61,10 @@
 #
 HOST_LIBS	= ./libvamp-hostsdk.a @SNDFILE_LIBS@ @LIBS@
 
+# Libraries required for the host.
+#
+HOSTSDK_LIBS = @LIBS@
+
 # Libraries required for the RDF template generator.
 #
 RDFGEN_LIBS	= ./libvamp-hostsdk.a @LIBS@
@@ -239,7 +243,7 @@
 		$(CXX) $(LDFLAGS) $(SDK_DYNAMIC_LDFLAGS) -o $@ $(SDK_OBJECTS)
 
 $(HOSTSDK_DYNAMIC):	$(HOSTSDK_OBJECTS) $(API_HEADERS) $(HOSTSDK_HEADERS)
-		$(CXX) $(LDFLAGS) $(HOSTSDK_DYNAMIC_LDFLAGS) -o $@ $(HOSTSDK_OBJECTS)
+		$(CXX) $(LDFLAGS) $(HOSTSDK_DYNAMIC_LDFLAGS) -o $@ $(HOSTSDK_OBJECTS) $(HOSTSDK_LIBS)
 
 $(PLUGIN_TARGET):	$(PLUGIN_OBJECTS) $(SDK_STATIC) $(PLUGIN_HEADERS)
 		$(CXX) $(LDFLAGS) $(PLUGIN_LDFLAGS) -o $@ $(PLUGIN_OBJECTS) $(PLUGIN_LIBS)