[Android] build: export all symbols in debug (fixes gdb)
Thomas Guillem
git at videolan.org
Tue Dec 1 17:06:50 CET 2015
vlc-ports/android | branch: master | Thomas Guillem <thomas at gllm.fr> | Tue Dec 1 17:04:52 2015 +0100| [9b4e5c5b7ced2e0c6be85162f03a2653d6a78936] | committer: Thomas Guillem
build: export all symbols in debug (fixes gdb)
> http://git.videolan.org/gitweb.cgi/vlc-ports/android.git/?a=commit;h=9b4e5c5b7ced2e0c6be85162f03a2653d6a78936
---
compile-libvlc.sh | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/compile-libvlc.sh b/compile-libvlc.sh
index 09ede97..1e9f05c 100755
--- a/compile-libvlc.sh
+++ b/compile-libvlc.sh
@@ -652,6 +652,10 @@ fi
echo "Building NDK"
+if [ "$RELEASE" = 1 ]; then
+ EXTRA_LDFLAGS="${EXTRA_LDFLAGS} -Wl,-soname -Wl,libvlc.so.5 -Wl,-version-script -Wl,$SRC_DIR/$VER_FILE"
+fi
+
$ANDROID_NDK/ndk-build -C libvlc \
VLC_SRC_DIR="$VLC_SRC_DIR" \
ANDROID_SYS_HEADERS="$ANDROID_SYS_HEADERS" \
@@ -659,7 +663,7 @@ $ANDROID_NDK/ndk-build -C libvlc \
VLC_CONTRIB="$VLC_CONTRIB" \
VLC_MODULES="$VLC_MODULES" \
TARGET_CFLAGS="$EXTRA_CFLAGS" \
- EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-soname -Wl,libvlc.so.5 -Wl,-version-script -Wl,$SRC_DIR/$VER_FILE" \
+ EXTRA_LDFLAGS="$EXTRA_LDFLAGS" \
LIBVLC_LIBS="$LIBVLC_LIBS" \
LIBIOMX_LIBS="$LIBIOMX_LIBS" \
LIBANW_LIBS="$LIBANW_LIBS" \
More information about the Android
mailing list