add rpath to LDFLAGS to build plugin properly
authorNaohiro KORIYAMA <nkoriyama@gmail.com>
Fri, 15 Aug 2014 08:06:16 +0000 (17:06 +0900)
committerFrancois Cartegnie <fcvlcdev@free.fr>
Sat, 16 Aug 2014 01:44:20 +0000 (10:44 +0900)
Signed-off-by: Francois Cartegnie <fcvlcdev@free.fr>
modules/codec/Makefile.am

index 96b9bd9..25968d7 100644 (file)
@@ -153,7 +153,8 @@ libdvbsub_plugin_la_SOURCES = codec/dvbsub.c
 codec_LTLIBRARIES += libdvbsub_plugin.la
 
 libaribsub_plugin_la_SOURCES = codec/arib/aribsub.c codec/arib/substext.h
-libaribsub_plugin_la_CFLAGS = $(ARIBB24_CFLAGS)
+libaribsub_plugin_la_CFLAGS = $(AM_CFLAGS) $(ARIBB24_CFLAGS)
+libaribsub_plugin_la_LDFLAGS = $(AM_LDFLAGS) -rpath '$(codecdir)'
 libaribsub_plugin_la_LIBADD = $(ARIBB24_LIBS)
 EXTRA_LTLIBRARIES += libaribsub_plugin.la
 codec_LTLIBRARIES += $(LTLIBaribsub)