information on the way. OBS-URL: https://build.opensuse.org/package/show/multimedia:libs/libmlt?expand=0&rev=6
31 lines
1.3 KiB
Diff
31 lines
1.3 KiB
Diff
Index: src/swig/python/build
|
|
===================================================================
|
|
--- src/swig/python/build.orig
|
|
+++ src/swig/python/build
|
|
@@ -21,10 +21,10 @@ then
|
|
swig -c++ -I../../mlt++ -I../.. -python mlt.i || exit $?
|
|
|
|
# Compile the wrapper
|
|
- g++ -fPIC -D_GNU_SOURCE -c -rdynamic -pthread -I../.. -I$PYTHON_INCLUDE mlt_wrap.cxx || exit $?
|
|
+ g++ -fPIC -D_GNU_SOURCE ${CXXFLAGS} -c -I../.. -I$PYTHON_INCLUDE mlt_wrap.cxx || exit $?
|
|
|
|
# Create the module
|
|
- g++ -shared mlt_wrap.o -L../../mlt++ -lmlt++ -L../../framework -lmlt $(python-config --ldflags) -o _mlt.so || exit $?
|
|
+ g++ ${CXXFLAGS} -shared mlt_wrap.o -L../../mlt++ -lmlt++ -L../../framework -lmlt $(python-config --ldflags) -o _mlt.so || exit $?
|
|
else
|
|
echo Python not installed.
|
|
exit 1
|
|
Index: src/swig/Makefile
|
|
===================================================================
|
|
--- src/swig/Makefile.orig
|
|
+++ src/swig/Makefile
|
|
@@ -6,7 +6,7 @@ all clean:
|
|
for subdir in $$list; do \
|
|
if [ -x $$subdir/build -a ! -f .$$subdir -o $@ = clean ] ; \
|
|
then echo -n Building $$subdir... ; \
|
|
- cd $$subdir && output=`./build $@ 2>&1` ; \
|
|
+ cd $$subdir && output=`CXXFLAGS="$(CXXFLAGS)" ./build $@ 2>&1` ; \
|
|
if [ $$? -eq 0 ] ; \
|
|
then echo OK && touch ../.$$subdir ; \
|
|
else echo $$output && exit 1 ; \
|