From d410f7d94a6525e7643946a523a62a371a8cb73d Mon Sep 17 00:00:00 2001 From: Waldemar Brodkorb Date: Tue, 2 Jun 2015 20:12:34 -0500 Subject: add check for static libstdc++ version, when icu4c is build --- scripts/scan-pkgs.sh | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) (limited to 'scripts') 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 + 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 -- cgit v1.2.3