Hi,
On Sun, 6 Nov 2005, Sam Ravnborg wrote:
> kconfig: fix xconfig on fedora 2 & 3 (x86_64)
>
> From: Than Ngo <[email protected]>
> 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 <[email protected]>
> Acked-by: Dave Jones <[email protected]>
> Signed-off-by: Sam Ravnborg <[email protected]>
>
> ---
> commit ab919c06144cfb11c05b5b5cd291daa96ac2e423
> tree 8747dc3122c0c2ebefaf004a2d71e2cb7bd97615
> parent 2dd34b488a99135ad2a529e33087ddd6a09e992a
> author Sam Ravnborg <[email protected]> Sun, 06 Nov 2005 11:05:21 +0100
> committer Sam Ravnborg <[email protected]> Sun, 06 Nov 2005 11:05:21 +0100
>
> scripts/kconfig/Makefile | 15 ++++++++++-----
> 1 files changed, 10 insertions(+), 5 deletions(-)
>
> diff --git a/scripts/kconfig/Makefile b/scripts/kconfig/Makefile
> index 0dd9691..455aeab 100644
> --- a/scripts/kconfig/Makefile
> +++ b/scripts/kconfig/Makefile
> @@ -129,7 +129,7 @@ endif
> HOSTCFLAGS_lex.zconf.o := -I$(src)
> HOSTCFLAGS_zconf.tab.o := -I$(src)
>
> -HOSTLOADLIBES_qconf = -L$(QTLIBPATH) -Wl,-rpath,$(QTLIBPATH) -l$(QTLIB) -ldl
> +HOSTLOADLIBES_qconf = -L$(QTLIBPATH) -Wl,-rpath,$(QTLIBPATH) -l$(LIBS_QT) -ldl
> HOSTCXXFLAGS_qconf.o = -I$(QTDIR)/include -D LKC_DIRECT_LINK
>
> HOSTLOADLIBES_gconf = `pkg-config gtk+-2.0 gmodule-2.0 libglade-2.0 --libs`
> @@ -163,11 +163,16 @@ $(obj)/.tmp_qtcheck:
> false; \
> fi; \
> LIBPATH=$$DIR/lib; LIB=qt; \
> - $(HOSTCXX) -print-multi-os-directory > /dev/null 2>&1 && \
> - LIBPATH=$$DIR/lib/$$($(HOSTCXX) -print-multi-os-directory); \
> - if [ -f $$LIBPATH/libqt-mt.so ]; then LIB=qt-mt; fi; \
> + if [ -f $$QTLIB/libqt-mt.so ] ; then \
> + LIB=qt-mt; \
> + LIBPATH=$$QTLIB; \
> + else \
> + $(HOSTCXX) -print-multi-os-directory > /dev/null 2>&1 && \
> + LIBPATH=$$DIR/lib/$$($(HOSTCXX) -print-multi-os-directory); \
> + if [ -f $$LIBPATH/libqt-mt.so ]; then LIB=qt-mt; fi; \
> + fi; \
> echo "QTDIR=$$DIR" > $@; echo "QTLIBPATH=$$LIBPATH" >> $@; \
> - echo "QTLIB=$$LIB" >> $@; \
> + echo "LIBS_QT=$$LIB" >> $@; \
> if [ ! -x $$DIR/bin/moc -a -x /usr/bin/moc ]; then \
> echo "*"; \
> echo "* Unable to find $$DIR/bin/moc, using /usr/bin/moc instead."; \
What exactly is the problem? How does Fedora use QTLIB?
bye, Roman
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
[Index of Archives]
[Kernel Newbies]
[Netfilter]
[Bugtraq]
[Photo]
[Stuff]
[Gimp]
[Yosemite News]
[MIPS Linux]
[ARM Linux]
[Linux Security]
[Linux RAID]
[Video 4 Linux]
[Linux for the blind]
[Linux Resources]