Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-42284

configure script adds host paths to gcc include and linking params

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • P2: Important
    • 5.12.1
    • 5.5.0
    • Build System
    • None
    • Android

    Description

      configure script adds local paths to gcc include and linking params when compiling the tests which enables sql plugins (psql, mysql, etc.) that are not available on android.
      Then it fails when it tries to link these plugins.

      The output of psql config test:

      /home/bogdan/necessitas/android-ndk/toolchains/x86_64-4.9/prebuilt/linux-x86_64/bin/x86_64-linux-android-g++ -c -ffunction-sections -funwind-tables -fstack-protector -fomit-frame-pointer -fstrict-aliasing -funswitch-loops -finline-limit=300 -DANDROID -Wa,--noexecstack -std=c++11 -O2 -O2 -Wall -Wno-psabi -W -fPIE  -I../../../mkspecs/android-g++ -I. -I/usr/include/postgresql -I/home/bogdan/necessitas/android-ndk/sources/cxx-stl/gnu-libstdc++/4.9/include -I/home/bogdan/necessitas/android-ndk/sources/cxx-stl/gnu-libstdc++/4.9/libs/x86_64/include -I/home/bogdan/necessitas/android-ndk/platforms/android-21/arch-x86_64/usr/include -o psql.o psql.cpp
      /home/bogdan/necessitas/android-ndk/toolchains/x86_64-4.9/prebuilt/linux-x86_64/bin/x86_64-linux-android-g++ --sysroot=/home/bogdan/necessitas/android-ndk/platforms/android-21/arch-x86_64/ -Wl,--no-undefined -Wl,-z,noexecstack -shared -o psql psql.o   -L/home/bogdan/necessitas/android-ndk/sources/cxx-stl/gnu-libstdc++/4.9/libs/x86_64 -L/home/bogdan/necessitas/android-ndk/platforms/android-21/arch-x86_64//usr/lib64 -L/usr/lib/x86_64-linux-gnu -lpq -lgnustl_shared -llog -lz -lm -ldl -lc -lgcc
      

      Attachments

        Issue Links

          No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

              qtbuildsystem Qt Build System Team
              taipan BogDan Vatra
              Votes:
              1 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes