Only try to resolve library paths via linker for Drawin clang

Task-number: QTBUG-61735
Change-Id: Ia8e777928aa0cff44f092968eac14d32501a5d73
Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@qt.io>
This commit is contained in:
Tor Arne Vestbø 2017-07-07 13:48:21 +02:00
parent 9db09b4700
commit 16799ba394

View File

@ -50,11 +50,11 @@ isEmpty($${target_prefix}.INCDIRS) {
rim_qcc: \ rim_qcc: \
# Need the cc1plus and ld command lines to pick up the paths # Need the cc1plus and ld command lines to pick up the paths
cxx_flags += $$QMAKE_LFLAGS_SHLIB -o $$null_file -v cxx_flags += $$QMAKE_LFLAGS_SHLIB -o $$null_file -v
else: clang: \ else: darwin:clang: \
# Need to link to pick up library paths # Need to link to pick up library paths
cxx_flags += $$QMAKE_LFLAGS_SHLIB -o /dev/null -v -Wl,-v cxx_flags += $$QMAKE_LFLAGS_SHLIB -o /dev/null -v -Wl,-v
else: \ else: \
# gcc is fine with just preprocessing # Just preprocess, might not pick up library paths
cxx_flags += -E -v cxx_flags += -E -v
output = $$system("$$cmd_prefix $$QMAKE_CXX $$qtMakeExpand($$cxx_flags) -xc++ - 2>&1 $$cmd_suffix", lines, ec) output = $$system("$$cmd_prefix $$QMAKE_CXX $$qtMakeExpand($$cxx_flags) -xc++ - 2>&1 $$cmd_suffix", lines, ec)