Skip to content
Snippets Groups Projects

compile-libvlc: mitigate potentially huge linker options

Open Pierre Lamot requested to merge chub/libvlcjni:reduce_linker_args into master
3 files
+ 33
3
Compare changes
  • Side-by-side
  • Inline
Files
3
@@ -675,7 +675,9 @@ rm ${REDEFINED_VLC_MODULES_DIR}/syms
###########################
VLC_MODULES=$(avlc_find_modules ${REDEFINED_VLC_MODULES_DIR})
VLC_CONTRIB_LDFLAGS=$(for i in $(/bin/ls $VLC_CONTRIB/lib/pkgconfig/*.pc); do avlc_pkgconfig --libs $i; done |xargs)
VLC_CONTRIB_LDFLAGS=$(pkg-config --libs-only-L --libs-only-other $(/bin/ls $VLC_CONTRIB_/lib/pkgconfig/*.pc))
#$(avlc_pkgconfig --libs $(/bin/ls $VLC_CONTRIB/lib/pkgconfig/*.pc))
VLC_CONTRIB_LDLIBS=$(pkg-config --libs-only-l $(/bin/ls $VLC_CONTRIB_/lib/pkgconfig/*.pc) | python3 $LIBVLCJNI_SRC_DIR/buildsystem/compress-ldlibs.py)
# Lua contrib doesn't expose a pkg-config file with libvlc 3.x and is
# not probed by the previous command in VLC_CONTRIB_LDFLAGS, so probe
@@ -695,6 +697,7 @@ $NDK_BUILD -C $LIBVLCJNI_SRC_DIR/libvlc \
VLC_BUILD_DIR="$VLC_BUILD_DIR" \
VLC_CONTRIB="$VLC_CONTRIB" \
VLC_CONTRIB_LDFLAGS="$VLC_CONTRIB_LDFLAGS" \
VLC_CONTRIB_LDLIBS="$VLC_CONTRIB_LDLIBS" \
VLC_MODULES="$VLC_MODULES" \
VLC_LDFLAGS="$VLC_LDFLAGS" \
VLC_BUILD_JNI="$AVLC_BUILD_JNI" \
Loading