mirror of
https://github.com/aria2/aria2.git
synced 2024-11-23 13:59:50 +00:00
Add -lstdc++ -lsupc++ in configure.ac not in android-config
Also make sure that those flags do not appear in libwslay LIBS.
This commit is contained in:
parent
c1ddf34e4b
commit
674581a8d6
@ -52,7 +52,6 @@ PATH=$TOOLCHAIN/bin:$PATH
|
||||
--with-libz --with-libz-prefix=$PREFIX \
|
||||
CXXFLAGS="-Os -g" \
|
||||
CFLAGS="-Os -g" \
|
||||
LIBS="-lstdc++ -lsupc++" \
|
||||
LDFLAGS="-L$PREFIX/lib" \
|
||||
PKG_CONFIG_LIBDIR="$PREFIX/lib/pkgconfig" \
|
||||
ZLIB_LIBS="-lz" \
|
||||
|
@ -612,6 +612,14 @@ AM_CONDITIONAL([ENABLE_WEBSOCKET], [test "x$enable_websocket" = "xyes"])
|
||||
|
||||
AC_SUBST([bashcompletiondir])
|
||||
|
||||
case "$host" in
|
||||
*android*)
|
||||
LIBS="$LIBS -lstdc++ -lsupc++"
|
||||
;;
|
||||
*)
|
||||
;;
|
||||
esac
|
||||
|
||||
if test "x$ARIA2_STATIC" = "xyes"; then
|
||||
LDFLAGS="$LDFLAGS -all-static -static-libgcc -static-libstdc++"
|
||||
dnl For non-MinGW build, we need additional libs for static build.
|
||||
|
Loading…
Reference in New Issue
Block a user