Re: [PATCH 1/3] 2.6.8-rc4-mm1 - Fix UML build

Andreas Schwab
2004-08-17T08:58:52Z

Jeff Dike <jdike@addtoit.com> writes:

> @@ -84,7 +88,10 @@
>
> prepare: $(ARCH_SYMLINKS) $(SYS_HEADERS) $(GEN_HEADERS)
>
> -LDFLAGS_vmlinux = -r
> +# This stupidity extracts the directory in which gcc lives so that it can
> +# be fed to ld when it's linking .tmp_vmlinux during the ldchk stage.
> +LD_DIR = $(shell dirname `gcc -v 2>&1 | head -1 | awk '{print $$NF}'`)

Try gcc -print-search-dirs.

Andreas.

--
Andreas Schwab, SuSE Labs, schwab@suse.de
SuSE Linux AG, Maxfeldstraße 5, 90409 Nürnberg, Germany
Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5
"And now for something completely different."