qpa: Use LIBS_PRIVATE, not LIBS when linking in font database bits.
LIBS_PRIVATE is more correct (these shouldn't be part of the public API), and additionally, using LIBS_PRIVATE also ensures these libraries come last on the link command, which fixes builds using -Wl,--as-needed. Change-Id: I9f2e4e78855a30a53ce9013623597b840a2832bd Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@theqtcompany.com>
This commit is contained in:
parent
eff3a7ded1
commit
b2e9c680e3
@ -1,3 +1,3 @@
|
||||
contains(QT_CONFIG, system-freetype) {
|
||||
LIBS += -lfreetype
|
||||
LIBS_PRIVATE += -lfreetype
|
||||
}
|
||||
|
@ -1,7 +1,7 @@
|
||||
CONFIG += qpa/basicunixfontdatabase
|
||||
contains(QT_CONFIG, fontconfig) {
|
||||
DEFINES += Q_FONTCONFIGDATABASE
|
||||
LIBS += -lfontconfig
|
||||
LIBS_PRIVATE += -lfontconfig
|
||||
} else:!android {
|
||||
fonts.path = $$[QT_INSTALL_LIBS]/fonts
|
||||
fonts.files = $$QT_SOURCE_TREE/lib/fonts/*
|
||||
|
Loading…
x
Reference in New Issue
Block a user