diff options
author | Waldemar Brodkorb <wbx@openadk.org> | 2015-06-02 20:12:34 -0500 |
---|---|---|
committer | Waldemar Brodkorb <wbx@openadk.org> | 2015-06-02 20:12:34 -0500 |
commit | d410f7d94a6525e7643946a523a62a371a8cb73d (patch) | |
tree | c11a5fb92e163ddb54cdf0a67aaf86d0e31eb884 /scripts | |
parent | a6c1b5872bfd0f05b196482e07ae254a77ef0279 (diff) |
add check for static libstdc++ version, when icu4c is build
Diffstat (limited to 'scripts')
-rw-r--r-- | scripts/scan-pkgs.sh | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/scripts/scan-pkgs.sh b/scripts/scan-pkgs.sh index 4caf2e78b..416d3a4d4 100644 --- a/scripts/scan-pkgs.sh +++ b/scripts/scan-pkgs.sh @@ -27,6 +27,10 @@ if [[ -n $ADK_PACKAGE_KODI ]]; then NEED_JAVA="$NEED_JAVA kodi" fi +if [[ -n $ADK_PACKAGE_ICU4C ]]; then + NEED_STATIC_LIBSTDCXX="$NEED_STATIC_LIBSTDCXX icu4c" +fi + if [[ -n $ADK_PACKAGE_XKEYBOARD_CONFIG ]]; then NEED_XKBCOMP="$NEED_XKBCOMP xkeyboard-config" fi @@ -68,4 +72,20 @@ if [[ -n $NEED_JAVA ]]; then fi fi +if [[ -n $NEED_STATIC_LIBSTDCXX ]]; then +cat >test.c <<-'EOF' + #include <stdio.h> + int + main() + { + return (0); + } +EOF + if ! g++ -static-libstdc++ -o test test.c ; then + echo >&2 You need static version of libstdc++ installed to build $NEED_STATIC_LIBSTDCXX + out=1 + rm test 2>/dev/null + fi +fi + exit $out |