Mercurial > gub
changeset 3404:a28dbb84f043
Fix compilers main target.
author | Jan Nieuwenhuizen <janneke@gnu.org> |
---|---|
date | Thu, 03 May 2007 13:40:07 +0200 |
parents | 53e0a7b49825 |
children | 475b91500306 |
files | compilers.make |
diffstat | 1 files changed, 5 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/compilers.make Thu May 03 13:39:51 2007 +0200 +++ b/compilers.make Thu May 03 13:40:07 2007 +0200 @@ -47,8 +47,11 @@ $(foreach binary, gcc g++, \ ln -s $(CWD)/gub/distcc.py target/native-distcc/bin/$(notdir $(binary)) && ) true -# Find out if we need gcc or glibc as topmost cross compile target -gcc_or_glibc = $(shell $(GUB_BUILDER) -p $(1) --inspect=version glibc > /dev/null 2>/dev/null && echo glibc || echo gcc) +# Find out if we need cross/gcc or glibc as topmost cross compile target +#gcc_or_glibc = $(shell $(GUB_BUILDER) -p $(1) --inspect=version glibc > /dev/null 2>/dev/null && echo glibc || echo cross/gcc) + +# URG +gcc_or_glibc = $(shell if echo $(1) | grep linux > /dev/null 2>/dev/null; then echo glibc; else echo cross/gcc; fi) cross-compilers: $(foreach p, $(PLATFORMS),$(call INVOKE_GUB_BUILDER, $(p)) $(call gcc_or_glibc, $(p)) && ) true