Преглед изворни кода

Ports/ffmpeg: Build shared libraries by using configure option

This fixes build error: relocation R_X86_64_PC32 against symbol
`ff_pw_5' can not be used when making a shared object; recompile
with -fPIC
Andre Herbst пре 2 година
родитељ
комит
6391480b80
1 измењених фајлова са 1 додато и 4 уклоњено
  1. 1 4
      Ports/ffmpeg/package.sh

+ 1 - 4
Ports/ffmpeg/package.sh

@@ -18,14 +18,11 @@ configure() {
         --enable-gpl \
         --enable-libx264 \
         --enable-libx265 \
+        --enable-shared \
         --disable-stripping \
         --disable-avx
 }
 
 install() {
     run make DESTDIR=${SERENITY_INSTALL_ROOT} "${installopts[@]}" install
-    for lib in libavcodec libavdevice libavfilter libavformat libavutil; do
-        ${CC} -shared -o ${SERENITY_INSTALL_ROOT}/usr/local/lib/${lib}.so -Wl,-soname,${lib}.so -Wl,--whole-archive ${SERENITY_INSTALL_ROOT}/usr/local/lib/${lib}.a -Wl,--no-whole-archive -liconv -ltiff -llzma -lbz2
-        rm -f ${SERENITY_INSTALL_ROOT}/usr/local/lib/$lib.la
-    done
 }