public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [RFC]  Allow 'make xconfig' to work on FC3 x86_64
@ 2004-11-23  2:42 Ben Greear
  0 siblings, 0 replies; only message in thread
From: Ben Greear @ 2004-11-23  2:42 UTC (permalink / raw)
  To: linux-kernel

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:
Signed-off-by:  Ben Greear <greearb@candelatech.com>


--- linux-2.6.9/scripts/kconfig/Makefile	2004-10-18 14:55:29.000000000 -0700
+++ linux-2.6.9.p4s/scripts/kconfig/Makefile	2004-11-22 17:43:28.395781962 -0800
@@ -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" >> $@; \


-- 
Ben Greear <greearb@candelatech.com>
Candela Technologies Inc  http://www.candelatech.com


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2004-11-23  2:46 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-11-23  2:42 [RFC] Allow 'make xconfig' to work on FC3 x86_64 Ben Greear

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox