Skip to contentSkip to conversation

Allow 'make xconfig' to work on FC3 x86_64

RFC New Ben Greear 1 participant 1 message Nov 23, 2004 Kconfig

lore
Share & tools
lore

Ben Greear

author
#0 lore raw

RFC 1/1 Allow 'make xconfig' to work on FC3 x86_64

The makefile out-clevers itself and chooses the wrong LIBPATH, causing the compile of the xconfig tool to fail. The added check for the lib64 directory and the logic to back out the '../lib64' addition to LIBPATH makes it work for me...

From talking with HPA, this can break other architectures, like ppc64.

So, I'm hoping that this patch will help someone come up with the right way to do it, but I do not propose that this *is* the right way to do it.

In case anyone wants it:

scripts/kconfig/Makefile +2 -1
@@ -112,7 +112,7 @@
 
 # QT needs some extra effort...
 $(obj)/.tmp_qtcheck:
-	@set -e; for d in $$QTDIR /usr/share/qt* /usr/lib/qt*; do \
+	@set -e; for d in $$QTDIR /usr/share/qt* /usr/lib64/qt* /usr/lib/qt*; do \
 	  if [ -f $$d/include/qconfig.h ]; then DIR=$$d; break; fi; \
 	done; \
 	if [ -z "$$DIR" ]; then \
@@ -126,6 +126,7 @@
 	LIBPATH=$$DIR/lib; LIB=qt; \
 	$(HOSTCXX) -print-multi-os-directory > /dev/null 2>&1 && \
 	  LIBPATH=$$DIR/lib/$$($(HOSTCXX) -print-multi-os-directory); \
+	if [ ! -d $$LIBPATH ]; then LIBPATH=$$DIR/lib; fi; \
 	if [ -f $$LIBPATH/libqt-mt.so ]; then LIB=qt-mt; fi; \
 	echo "QTDIR=$$DIR" > $@; echo "QTLIBPATH=$$LIBPATH" >> $@; \
 	echo "QTLIB=$$LIB" >> $@; \
Signature · 2 lines
Ben Greear <[email protected]>
Candela Technologies Inc  http://www.candelatech.com