[rb-general] [PATCH] gcc: read -fdebug-prefix-map OLD from environment (improved reproducibility)

Joseph Myers joseph at codesourcery.com
Fri Dec 11 00:59:33 CET 2015


On Thu, 10 Dec 2015, Daniel Kahn Gillmor wrote:

> Specifically, if the first character of the "old" argument is a
> literal $, then gcc will treat it as an environment variable name, and
> use the value of the env var for prefix mapping.

I don't think a literal $ in option arguments is a good idea; it's far too 
hard to pass through a sequence of shells and makefiles that you typically 
get in recursive make.  You end up with things like 
'-Wl,-rpath,'\''\\\$$\$$\\\$$\$$ORIGIN'\''/../' (part of a process for 
using $ORIGIN when linking GDB) if you try.

-- 
Joseph S. Myers
joseph at codesourcery.com


More information about the rb-general mailing list