aw-overlay/media-libs/mlt/files/mlt-0.9.8-ruby-link.patch

20 lines
715 B
Diff
Raw Normal View History

2016-01-02 00:36:39 -05:00
The build system tries to link to installed system libraries first, which
fails because the ABI has changed...
Index: mlt-0.9.8/src/swig/ruby/build
===================================================================
--- mlt-0.9.8.orig/src/swig/ruby/build
+++ mlt-0.9.8/src/swig/ruby/build
@@ -5,8 +5,10 @@ if ARGV.shift == 'clean'
exit 0
end
system( "ln -sf ../mlt.i" )
+system( "ln -sf ../../framework/libmlt.so" )
+system( "ln -sf ../../mlt++/libmlt++.so" )
system( "swig -c++ -ruby -I../../mlt++ -I../.. mlt.i" )
$CFLAGS += " -I../.. " + (ENV.has_key?('CXXFLAGS')? ENV['CXXFLAGS'] : '')
-$LDFLAGS += " -L../../mlt++ -lmlt++"
+$LIBS += " -lmlt++ -lmlt -lstdc++"
create_makefile('mlt')
system( "make" )