diff options
author | Ralf Nolden <nolden@kde.org> | 2016-06-24 22:33:31 +0200 |
---|---|---|
committer | Ralf Nolden <nolden@kde.org> | 2016-06-27 18:45:29 +0000 |
commit | 1a96295755391b508ea37b4bfbb681ea15ed7559 (patch) | |
tree | d611109f0ae1d2907c11243d6b0f09501309c969 /config.tests/unix | |
parent | 0c44f26fae4d3ee493d8669b2ae1ea525e71c953 (diff) |
Libpng config.tests: use pkg-config when available
Add pkg-config to the libpng usages as not all systems have the
symlink libpng.so -> libpng<version>.so (affected: NetBSD) that changes
with the version of the lib. If no-pkg-config is used, use -lpng as
before. Tested with FreeBSD 10.3, NetBSD 7.0.1 using png 1.6.21
Change-Id: I5c87f380c84da3d5c56c94da53adb900791c8caa
Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@theqtcompany.com>
Diffstat (limited to 'config.tests/unix')
-rw-r--r-- | config.tests/unix/libpng/libpng.pro | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/config.tests/unix/libpng/libpng.pro b/config.tests/unix/libpng/libpng.pro index 4e50fe26e5..cdca43171c 100644 --- a/config.tests/unix/libpng/libpng.pro +++ b/config.tests/unix/libpng/libpng.pro @@ -1,3 +1,8 @@ SOURCES = libpng.cpp CONFIG -= qt dylib -LIBS += -lpng +!contains(QT_CONFIG, no-pkg-config) { + CONFIG += link_pkgconfig + PKGCONFIG += libpng +} else { + LIBS += -lpng +} |