[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: ?complex args pass to other app w/o changing?



zhaoway (zhaoway@xteamlinux.com.cn) wrote:

> for a call: make CXXFLAGS="-O2 -do-strength-reduce" LD="-s"
> i want the wrapper (above "fake" make prog) to pass the CXXFLAGS=.. et al
> to the real make prog (say, make_real).

How about this:

  alias make='make CXXFLAGS="-O2 -do-strength-reduce" LD=-s'

(Put this in ~/.bashrc if it works; and make sure you have "source ~/.bashrc"
or ". ~/.bashrc" in your ~/.bash_profile or ~/.profile.  I will *never*
understand why login bash shells do not read ~/.bashrc by default....)

-- 
Greg Wooledge                    | Distributed.NET http://www.distributed.net/
wooledge@kellnet.com             | because a CPU is a terrible thing to waste.
http://www.kellnet.com/wooledge/ |


Reply to: