Commit e52f86cd authored by Martin Storsjö's avatar Martin Storsjö
Browse files

Link libgcc before the private platform libraries extracted from a device

These libraries might contain functions from libgcc, and if the
linker finds the symbol there, it won't get linked in from libgcc,
leading to an undefined reference to that symbol, and there is no
guarantee that the symbol will be found at runtime in any of the
other libraries linked in.
Signed-off-by: Martin Storsjö's avatarMartin Storsjö <>
parent a741d065
...@@ -22,7 +22,7 @@ LOCAL_LDLIBS := -L$(VLC_CONTRIB)/lib \ ...@@ -22,7 +22,7 @@ LOCAL_LDLIBS := -L$(VLC_CONTRIB)/lib \
-lavformat -lavcodec -lswscale -lavutil -lpostproc \ -lavformat -lavcodec -lswscale -lavutil -lpostproc \
-lmpeg2 -lpng -ldca -ldvbpsi -ltwolame -lkate -llog -la52 \ -lmpeg2 -lpng -ldca -ldvbpsi -ltwolame -lkate -llog -la52 \
-lebml -lmatroska -ltag \ -lebml -lmatroska -ltag \
-L$(ANDROID_LIBS) -lstagefright -lmedia -lutils -lbinder \ -L$(ANDROID_LIBS) -lgcc -lstagefright -lmedia -lutils -lbinder \
$(ANDROID_NDK)/sources/cxx-stl/gnu-libstdc++/libs/$(ARCH)/libstdc++.a $(ANDROID_NDK)/sources/cxx-stl/gnu-libstdc++/libs/$(ARCH)/libstdc++.a
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment