diff --git a/packaging/debian_3rdparty/build_ffmpeg_nomuxers.sh b/packaging/debian_3rdparty/build_ffmpeg_nomuxers.sh index d4fd520e6..8d4b3c0e6 100755 --- a/packaging/debian_3rdparty/build_ffmpeg_nomuxers.sh +++ b/packaging/debian_3rdparty/build_ffmpeg_nomuxers.sh @@ -10,6 +10,7 @@ tar xf $FFMPEG_VERSION.tar.gz cd $FFMPEG_VERSION ./configure \ + --enable-pic \ $FFMPEG_AUDIO_FLAGS \ --prefix=$PREFIX \ $SHARED_OR_STATIC diff --git a/packaging/debian_3rdparty/build_fftw3.sh b/packaging/debian_3rdparty/build_fftw3.sh index e0f416964..8c4e716ae 100755 --- a/packaging/debian_3rdparty/build_fftw3.sh +++ b/packaging/debian_3rdparty/build_fftw3.sh @@ -9,7 +9,7 @@ wget http://www.fftw.org/$FFTW_VERSION.tar.gz tar -xf $FFTW_VERSION.tar.gz cd $FFTW_VERSION -./configure \ +CPPFLAGS=-fPIC ./configure \ --prefix=$PREFIX \ $FFTW_FLAGS \ $SHARED_OR_STATIC diff --git a/packaging/debian_3rdparty/build_libsamplerate.sh b/packaging/debian_3rdparty/build_libsamplerate.sh index e71c4efe9..4460a07c6 100755 --- a/packaging/debian_3rdparty/build_libsamplerate.sh +++ b/packaging/debian_3rdparty/build_libsamplerate.sh @@ -9,7 +9,7 @@ wget http://www.mega-nerd.com/SRC/$LIBSAMPLERATE_VERSION.tar.gz tar -xf $LIBSAMPLERATE_VERSION.tar.gz cd $LIBSAMPLERATE_VERSION -./configure \ +CPPFLAGS=-fPIC ./configure \ --prefix=$PREFIX \ $LIBSAMPLERATE_FLAGS \ $SHARED_OR_STATIC diff --git a/packaging/debian_3rdparty/build_taglib.sh b/packaging/debian_3rdparty/build_taglib.sh index ba9b0030a..f8b01d87b 100755 --- a/packaging/debian_3rdparty/build_taglib.sh +++ b/packaging/debian_3rdparty/build_taglib.sh @@ -10,6 +10,7 @@ tar -xf $TAGLIB_VERSION.tar.gz cd $TAGLIB_VERSION/ cmake \ + -D CMAKE_CXX_FLAGS="-fPIC" \ -DCMAKE_INSTALL_PREFIX=$PREFIX \ -DCMAKE_BUILD_TYPE=Release \ -DENABLE_STATIC=ON \ diff --git a/packaging/debian_3rdparty/build_yaml.sh b/packaging/debian_3rdparty/build_yaml.sh index c6a4ee2ea..dc8b3f587 100755 --- a/packaging/debian_3rdparty/build_yaml.sh +++ b/packaging/debian_3rdparty/build_yaml.sh @@ -13,7 +13,7 @@ tar -xf $LIBYAML_VERSION.tar.gz cd $LIBYAML_VERSION # fails to compile shared library, building only static -CFLAGS="-DYAML_DECLARE_STATIC" ./configure \ +CFLAGS="-DYAML_DECLARE_STATIC -fPIC" ./configure \ --prefix=$PREFIX \ $SHARED_OR_STATIC make