Skip to content

Commit

Permalink
Compile static dependencies with -fPIC
Browse files Browse the repository at this point in the history
Otherwise linking to build a shared library fails.
  • Loading branch information
dbogdanov committed Aug 21, 2017
1 parent 725049a commit 177a922
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 3 deletions.
1 change: 1 addition & 0 deletions packaging/debian_3rdparty/build_ffmpeg_nomuxers.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ tar xf $FFMPEG_VERSION.tar.gz
cd $FFMPEG_VERSION

./configure \
--enable-pic \
$FFMPEG_AUDIO_FLAGS \
--prefix=$PREFIX \
$SHARED_OR_STATIC
Expand Down
2 changes: 1 addition & 1 deletion packaging/debian_3rdparty/build_fftw3.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion packaging/debian_3rdparty/build_libsamplerate.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 1 addition & 0 deletions packaging/debian_3rdparty/build_taglib.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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 \
Expand Down
2 changes: 1 addition & 1 deletion packaging/debian_3rdparty/build_yaml.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 177a922

Please sign in to comment.