File tree 1 file changed +6
-2
lines changed
1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -873,7 +873,7 @@ CONFIGURE_OPTIONS+=("--enable-libmp3lame")
873
873
if build " opus" " 1.4" ; then
874
874
download " https://downloads.xiph.org/releases/opus/opus-$CURRENT_PACKAGE_VERSION .tar.gz"
875
875
if $SHARED_LIBRARIES ; then
876
- execute ./configure --prefix=" ${WORKSPACE} " --enable-shared --disable-static
876
+ execute ./configure --prefix=" ${WORKSPACE} " --enable-shared --disable-static --with-pic
877
877
else
878
878
execute ./configure --prefix=" ${WORKSPACE} " --disable-shared --enable-static
879
879
fi
@@ -989,7 +989,11 @@ if build "libwebp" "1.2.2"; then
989
989
# libwebp can fail to compile on Ubuntu if these flags were left set to CFLAGS
990
990
CPPFLAGS=
991
991
download " https://storage.googleapis.com/downloads.webmproject.org/releases/webp/libwebp-$CURRENT_PACKAGE_VERSION .tar.gz" " libwebp-$CURRENT_PACKAGE_VERSION .tar.gz"
992
- execute ./configure --prefix=" ${WORKSPACE} " --disable-shared --enable-static --disable-dependency-tracking --disable-gl --with-zlib-include=" ${WORKSPACE} " /include/ --with-zlib-lib=" ${WORKSPACE} " /lib
992
+ if $SHARED_LIBRARIES ; then
993
+ execute ./configure --prefix=" ${WORKSPACE} " --enable-shared --disable-static --disable-dependency-tracking --disable-gl --with-zlib-include=" ${WORKSPACE} " /include/ --with-zlib-lib=" ${WORKSPACE} " /lib
994
+ else
995
+ execute ./configure --prefix=" ${WORKSPACE} " --disable-shared --enable-static --disable-dependency-tracking --disable-gl --with-zlib-include=" ${WORKSPACE} " /include/ --with-zlib-lib=" ${WORKSPACE} " /lib
996
+ fi
993
997
make_dir build
994
998
cd build || exit
995
999
execute cmake -DCMAKE_INSTALL_PREFIX=" ${WORKSPACE} " -DCMAKE_INSTALL_LIBDIR=lib -DCMAKE_INSTALL_BINDIR=bin -DCMAKE_INSTALL_INCLUDEDIR=include -DENABLE_SHARED=OFF -DENABLE_STATIC=ON ../
You can’t perform that action at this time.
0 commit comments