diff options
author | Alexander Stein <alexander.stein@informatik.tu-chemnitz.de> | 2010-09-10 13:01:14 -0400 |
---|---|---|
committer | Michal Marek <mmarek@suse.cz> | 2010-09-13 07:01:30 -0400 |
commit | 20f4ad8a19ad01405f9d6b3110d6eb93666ae21e (patch) | |
tree | 9bc8e816bc3e35f13059cdb3dc0298770e4bd628 /scripts/kconfig | |
parent | aee08ed499d65f78373b716fcacefcde1ceb7ade (diff) |
Fix QT4 moc, cflags libs detection on dual QT3/Qt4 systems
On system with QT3 and QT4 qmake in PATH may be from QT3. So we use
pkg-config for proper QT4 detection.
By reqesting cflags and libs for either QtCore, QtGui and QtSupport include
dirs and libs get listed several times, but so we won't mis anything
Signed-off-by: Alexander Stein <alexander.stein@informatik.tu-chemnitz.de>
Acked-by: Randy Dunlap <rdunlap@xenotime.net>
Signed-off-by: Michal Marek <mmarek@suse.cz>
Diffstat (limited to 'scripts/kconfig')
-rw-r--r-- | scripts/kconfig/Makefile | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/scripts/kconfig/Makefile b/scripts/kconfig/Makefile index cef3f75e1c2b..996059ef1c4d 100644 --- a/scripts/kconfig/Makefile +++ b/scripts/kconfig/Makefile | |||
@@ -273,12 +273,10 @@ $(obj)/.tmp_qtcheck: | |||
273 | moc="/usr/bin/moc"; \ | 273 | moc="/usr/bin/moc"; \ |
274 | fi; \ | 274 | fi; \ |
275 | else \ | 275 | else \ |
276 | headerpath="\$$(shell qmake -query QT_INSTALL_HEADERS)"; \ | 276 | cflags="\$$(shell pkg-config QtCore --cflags) \$$(shell pkg-config QtGui --cflags) \$$(shell pkg-config Qt3Support --cflags)"; \ |
277 | libpath="\$$(shell qmake -query QT_INSTALL_LIBS)"; \ | 277 | libs="\$$(shell pkg-config QtCore --libs) \$$(shell pkg-config QtGui --libs) \$$(shell pkg-config Qt3Support --libs)"; \ |
278 | binpath="\$$(shell qmake -query QT_INSTALL_BINS)"; \ | 278 | binpath="\$$(shell pkg-config QtCore --variable=prefix)"; \ |
279 | cflags="-I$$headerpath -I$$headerpath/QtCore -I$$headerpath/QtGui -I$$headerpath/Qt3Support -DQT3_SUPPORT"; \ | 279 | moc="$$binpath/bin/moc"; \ |
280 | libs="-L$$libpath -Wl,-rpath,$$libpath -lQtCore -lQtGui -lQt3Support"; \ | ||
281 | moc="$$binpath/moc"; \ | ||
282 | fi; \ | 280 | fi; \ |
283 | echo "KC_QT_CFLAGS=$$cflags" > $@; \ | 281 | echo "KC_QT_CFLAGS=$$cflags" > $@; \ |
284 | echo "KC_QT_LIBS=$$libs" >> $@; \ | 282 | echo "KC_QT_LIBS=$$libs" >> $@; \ |