[PATCH] Shorten filenames during build/link
Jeffrey D. Oldham
oldham at codesourcery.com
Tue Jun 1 19:21:34 UTC 2004
Richard Guenther wrote:
> This patch shortens filenames by omitting full path to avoid overly
> long command lines. Compiled and tested building some examples,
> benchmarks and tests.
>
> Ok?
>
> Richard.
Yes, this is fine as long as it does not break compiling on some
operating system. For example, does Windows support '.'?
> 2004May31 Richard Guenther <richard.guenther at uni-tuebingen.de>
>
> * config/Shared/include1.mk: set THISDIR to .
> config/Shared/tail.mk: don't change into PROJECT_ROOT
> for PRE_CMDLINE.
>
>------------------------------------------------------------------------
>
>===== config/Shared/include1.mk 1.1 vs edited =====
>--- 1.1/r2/config/Shared/include1.mk 2002-05-13 17:47:19 +02:00
>+++ edited/config/Shared/include1.mk 2004-05-31 17:06:53 +02:00
>@@ -32,8 +32,7 @@
> ########################################################################
>
> ifndef NEXTDIR
>-# THISDIR :=$(subst /tmp_mnt,,$(shell pwd))
>- THISDIR :=$(shell pwd)
>+ THISDIR := .
> DIR_LIST :=$(THISDIR)
> else
> DIR_LIST :=$(THISDIR)/$(NEXTDIR) $(DIR_LIST)
>===== config/Shared/tail.mk 1.2 vs edited =====
>--- 1.2/r2/config/Shared/tail.mk 2003-06-23 14:50:42 +02:00
>+++ edited/config/Shared/tail.mk 2004-05-31 16:08:26 +02:00
>@@ -57,7 +57,7 @@
> INFO_FILE = $@_$(PASS).info
>
> # This is prepended to compile, link, archive, preprocess, etc rules.
>-PRE_CMDLINE = cd $(PROJECT_ROOT); TMPDIR=$(TMPDIR)/$(SUITE); $(TIME)
>+PRE_CMDLINE = TMPDIR=$(TMPDIR)/$(SUITE); $(TIME)
>
> # This is prepended to compile, link, archive, preprocess, etc rules.
> PDB_PRE_CMDLINE = cd $(@D); TMPDIR=$(TMPDIR)/$(SUITE); $(TIME)
>
>
--
Jeffrey D. Oldham
oldham at codesourcery.com
More information about the pooma-dev
mailing list