don't call pkg-config with --libs-only-L and --libs-only-l at once
the options are mutually exclusive, with the last one winning. Task-number: QTBUG-60382 Change-Id: Ie6d888ac8be6b22b204fcad93c184477baa38965 Reviewed-by: Joerg Bornemann <joerg.bornemann@qt.io>
This commit is contained in:
parent
882243abaf
commit
7e298e2f2c
@ -575,11 +575,14 @@ defineTest(qtConfLibrary_pkgConfig) {
|
||||
}
|
||||
|
||||
qtRunLoggedCommand("$$pkg_config --modversion $$args", version)|return(false)
|
||||
qtRunLoggedCommand("$$pkg_config --libs-only-L --libs-only-l $$args", $${1}.libs)|return(false)
|
||||
qtRunLoggedCommand("$$pkg_config --libs-only-L $$args", libpaths)|return(false)
|
||||
qtRunLoggedCommand("$$pkg_config --libs-only-l $$args", libs)|return(false)
|
||||
qtRunLoggedCommand("$$pkg_config --cflags $$args", $${1}.cflags)|return(false)
|
||||
version ~= s/[^0-9.].*$//
|
||||
$${1}.version = $$first(version)
|
||||
export($${1}.version)
|
||||
$${1}.libs = $$libpaths $$libs
|
||||
export($${1}.libs)
|
||||
return(true)
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user