swig/python/build: add -fPIC
authorddennedy <ddennedy@d19143bc-622f-0410-bfdd-b5b2a6649095>
Sat, 16 Feb 2008 05:50:52 +0000 (05:50 +0000)
committerddennedy <ddennedy@d19143bc-622f-0410-bfdd-b5b2a6649095>
Sat, 16 Feb 2008 05:50:52 +0000 (05:50 +0000)
git-svn-id: https://mlt.svn.sourceforge.net/svnroot/mlt/trunk/mlt++@1074 d19143bc-622f-0410-bfdd-b5b2a6649095

mlt++/swig/python/build

index 17ec48e..5cd89d3 100755 (executable)
@@ -15,7 +15,7 @@ then
        swig -c++ -I../../src `mlt-config --cflags` -python mltpp.i || exit $?
 
        # Compile the wrapper
-       g++ -D_GNU_SOURCE -c -rdynamic -pthread `mlt-config --cflags` -I$PYTHON_INCLUDE mltpp_wrap.cxx || exit $?
+       g++ -fPIC -D_GNU_SOURCE -c -rdynamic -pthread `mlt-config --cflags` -I$PYTHON_INCLUDE mltpp_wrap.cxx || exit $?
 
        # Create the module
        ld -shared mltpp_wrap.o -L../../src -lmlt++ -o _mltpp.so || exit $?