diff options
| author | Sam Ravnborg <sam@mars.ravnborg.org> | 2005-11-06 05:05:21 -0500 |
|---|---|---|
| committer | Sam Ravnborg <sam@mars.ravnborg.org> | 2005-11-06 05:05:21 -0500 |
| commit | ab919c06144cfb11c05b5b5cd291daa96ac2e423 (patch) | |
| tree | 8747dc3122c0c2ebefaf004a2d71e2cb7bd97615 /scripts | |
| parent | 2dd34b488a99135ad2a529e33087ddd6a09e992a (diff) | |
kconfig: fix xconfig on fedora 2 & 3 (x86_64)
From: Than Ngo <than@redhat.com>
qt as installed on fedora core (2 and 3) does not work with vanilla
kernel. The linker fails to locate the qt lib:
Actual Results: # make xconfig
HOSTLD scripts/kconfig/qconf
/usr/bin/ld: cannot find -lqt
collect2: ld returned 1 exit status
Than Ngo has provided following fix for the bug.
Cc: Than Ngo <than@redhat.com>
Acked-by: Dave Jones <davej@redhat.com>
Signed-off-by: Sam Ravnborg <sam@ravnborg.org>
Diffstat (limited to 'scripts')
| -rw-r--r-- | scripts/kconfig/Makefile | 15 |
1 files changed, 10 insertions, 5 deletions
diff --git a/scripts/kconfig/Makefile b/scripts/kconfig/Makefile index 0dd96919de3e..455aeabd95dd 100644 --- a/scripts/kconfig/Makefile +++ b/scripts/kconfig/Makefile | |||
| @@ -129,7 +129,7 @@ endif | |||
| 129 | HOSTCFLAGS_lex.zconf.o := -I$(src) | 129 | HOSTCFLAGS_lex.zconf.o := -I$(src) |
| 130 | HOSTCFLAGS_zconf.tab.o := -I$(src) | 130 | HOSTCFLAGS_zconf.tab.o := -I$(src) |
| 131 | 131 | ||
| 132 | HOSTLOADLIBES_qconf = -L$(QTLIBPATH) -Wl,-rpath,$(QTLIBPATH) -l$(QTLIB) -ldl | 132 | HOSTLOADLIBES_qconf = -L$(QTLIBPATH) -Wl,-rpath,$(QTLIBPATH) -l$(LIBS_QT) -ldl |
| 133 | HOSTCXXFLAGS_qconf.o = -I$(QTDIR)/include -D LKC_DIRECT_LINK | 133 | HOSTCXXFLAGS_qconf.o = -I$(QTDIR)/include -D LKC_DIRECT_LINK |
| 134 | 134 | ||
| 135 | HOSTLOADLIBES_gconf = `pkg-config gtk+-2.0 gmodule-2.0 libglade-2.0 --libs` | 135 | HOSTLOADLIBES_gconf = `pkg-config gtk+-2.0 gmodule-2.0 libglade-2.0 --libs` |
| @@ -163,11 +163,16 @@ $(obj)/.tmp_qtcheck: | |||
| 163 | false; \ | 163 | false; \ |
| 164 | fi; \ | 164 | fi; \ |
| 165 | LIBPATH=$$DIR/lib; LIB=qt; \ | 165 | LIBPATH=$$DIR/lib; LIB=qt; \ |
| 166 | $(HOSTCXX) -print-multi-os-directory > /dev/null 2>&1 && \ | 166 | if [ -f $$QTLIB/libqt-mt.so ] ; then \ |
| 167 | LIBPATH=$$DIR/lib/$$($(HOSTCXX) -print-multi-os-directory); \ | 167 | LIB=qt-mt; \ |
| 168 | if [ -f $$LIBPATH/libqt-mt.so ]; then LIB=qt-mt; fi; \ | 168 | LIBPATH=$$QTLIB; \ |
| 169 | else \ | ||
| 170 | $(HOSTCXX) -print-multi-os-directory > /dev/null 2>&1 && \ | ||
| 171 | LIBPATH=$$DIR/lib/$$($(HOSTCXX) -print-multi-os-directory); \ | ||
| 172 | if [ -f $$LIBPATH/libqt-mt.so ]; then LIB=qt-mt; fi; \ | ||
| 173 | fi; \ | ||
| 169 | echo "QTDIR=$$DIR" > $@; echo "QTLIBPATH=$$LIBPATH" >> $@; \ | 174 | echo "QTDIR=$$DIR" > $@; echo "QTLIBPATH=$$LIBPATH" >> $@; \ |
| 170 | echo "QTLIB=$$LIB" >> $@; \ | 175 | echo "LIBS_QT=$$LIB" >> $@; \ |
| 171 | if [ ! -x $$DIR/bin/moc -a -x /usr/bin/moc ]; then \ | 176 | if [ ! -x $$DIR/bin/moc -a -x /usr/bin/moc ]; then \ |
| 172 | echo "*"; \ | 177 | echo "*"; \ |
| 173 | echo "* Unable to find $$DIR/bin/moc, using /usr/bin/moc instead."; \ | 178 | echo "* Unable to find $$DIR/bin/moc, using /usr/bin/moc instead."; \ |
