build-sys: don't hardcode the module directory 08/28208/1
authorTanu Kaskinen <tanu.kaskinen@linux.intel.com>
Tue, 30 Sep 2014 09:17:58 +0000 (12:17 +0300)
committerTanu Kaskinen <tanu.kaskinen@linux.intel.com>
Tue, 30 Sep 2014 09:17:58 +0000 (12:17 +0300)
On my machine, which has a self-compiled PulseAudio installed under
/usr/local, the hardcoded path caused a failure in loading
module-murphy-ivi, because the linker didn't find
libmain-volume-policy.so, which is only available under /usr/local.

Change-Id: Ic9ee4ce44d35f23a070176ffee361c14d0d1f08c

murphy/Makefile.am

index 98265b4..12da03f 100644 (file)
@@ -11,7 +11,7 @@ ROUTERIF = socketif.c
 AM_CFLAGS = -I..
 endif
 
-CONDITIONAL_CFLAGS += -Wl,-rpath -Wl,/usr/lib/pulse-5.0/modules
+CONDITIONAL_CFLAGS += -Wl,-rpath -Wl,$(modlibexecdir)
 
 modlibexec_LTLIBRARIES = module-murphy-ivi.la