summaryrefslogtreecommitdiffstats
path: root/opensuse/core/arts/avoid_la_files.diff
blob: 7c592d6871e816b8a06b341394794bf1e2f10339 (plain)
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
--- artsc/Makefile.am
+++ artsc/Makefile.am
@@ -1,4 +1,4 @@
-AM_CFLAGS = -DARTSC_BACKEND='"$(libdir)/libartscbackend.la"' 
+AM_CFLAGS = -DARTSC_BACKEND='"$(libdir)/libartscbackend.so"' 
 AM_CPPFLAGS = -DCOMPILING_ARTSC
 lib_LTLIBRARIES = libartsc.la libartscbackend.la libartsdsp.la libartsdsp_st.la
 FLOWLIBS = $(top_builddir)/flow/libartsflow.la
--- mcop/extensionloader.cc
+++ mcop/extensionloader.cc
@@ -56,7 +56,14 @@
 	/* this will catch all startup classes here */
 	StartupManager::setExtensionLoader(this);
 
-    lt_dlinit();
+    	lt_dlinit();
+
+	string::size_type len = dlfilename.length();
+	if (len > 0 && dlfilename[len-1] == 'a' && dlfilename[len-2] == 'l') {
+          dlfilename[len-1] = 'o';
+          dlfilename[len-2] = 's';
+        }
+
 	handle = lt_dlopen(dlfilename.c_str());
 
 	StartupManager::setExtensionLoader(0);