mirror of
				https://github.com/cookiengineer/audacity
				synced 2025-10-31 14:13:50 +01:00 
			
		
		
		
	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.
		
			
				
	
	
		
			31 lines
		
	
	
		
			1.2 KiB
		
	
	
	
		
			Diff
		
	
	
	
	
	
			
		
		
	
	
			31 lines
		
	
	
		
			1.2 KiB
		
	
	
	
		
			Diff
		
	
	
	
	
	
| 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)
 |