]> err.no Git - linux-2.6/commit
[PATCH] ppc64: override command line AS/LD/CC variables when adding -m64 and co for...
authorSven Luther <sven.luther@wanadoo.fr>
Wed, 22 Jun 2005 00:15:32 +0000 (17:15 -0700)
committerLinus Torvalds <torvalds@ppc970.osdl.org>
Wed, 22 Jun 2005 01:46:26 +0000 (18:46 -0700)
commit723e2b35e43dcbcfd737c40453caa7d198092d23
tree3597339cd7e54aebe0e950ddee3f6cf3cdbf2071
parent20cee16ced631f70a62c97bdebae08a1c9470448
[PATCH] ppc64: override command line AS/LD/CC variables when adding -m64 and co for biarch compilers

The following kind of calls currently fails :

  make ARCH=ppc64 CC="gcc-3.4"

Since the code for detecting a biarch compiler and adding the needed 64bit
magic argument fails if the AS/LD/CC commands are overriden in the command
line.

The attached patch fixes this by using the make override and += directive,
but i am not 100% sure this will work without gmake, as i am no Makefile
expert.

Cc: Paul Mackerras <paulus@samba.org>
Cc: Anton Blanchard <anton@samba.org>
Cc: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
arch/ppc64/Makefile