6c29aaa1c7
This will make things as std::to_string() and other C++ features work with a modern and supported C++ library. We package up libc++_shared.so and bump the revision of every C++ using package to make it rebuild against it. Users who have built C++ using libraries or programs will probably need to rebuild them if they are linked against Termux-supplied libraries, as user code was previously linked against gnustl while the system libraries are now using libc++, and it's not a good idea to mix C++ standard libraries in a program.
15 lines
489 B
Bash
15 lines
489 B
Bash
TERMUX_PKG_HOMEPAGE=https://libcxx.llvm.org/
|
|
TERMUX_PKG_DESCRIPTION="C++ Standard Library"
|
|
TERMUX_PKG_VERSION=$TERMUX_NDK_VERSION
|
|
# Since every C++ package links against this by default (due
|
|
# to the libstdc++.so -> libc++_shared.so setup in
|
|
# build-package.sh) this package is considered essential,
|
|
# and other packages does not need to declare explicit
|
|
# dependency on it.
|
|
TERMUX_PKG_ESSENTIAL=yes
|
|
|
|
termux_step_post_massage () {
|
|
mkdir lib
|
|
cp $TERMUX_PREFIX/lib/libc++_shared.so lib/
|
|
}
|