[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Interpolating construction variables in compiler flags
From: |
H. S. Teoh |
Subject: |
Interpolating construction variables in compiler flags |
Date: |
Tue, 11 Mar 2003 22:47:59 -0500 |
User-agent: |
Mutt/1.5.3i |
Hi, I've run into this little rut with Cons: I'm trying to define a C
preprocessor macro with -D, whose value is a pathname defined in the
Construct file. The problem is, setting the path in the Construct file to
"#data" and adding "-DDATADIR=$DATADIR" to $CFLAGS doesn't work, because
it's not interpolated (cons tries to run g++ with "-DDATADIR=#data"
without expanding the path).
How do I make Cons interpolate the path before adding it to CFLAGS?
Or perhaps a better question is, what's the right way to accomplish what I
want?
Thanks.
T
--
The two rules of success: 1. Don't tell everything you know. -- YHL
- Interpolating construction variables in compiler flags,
H. S. Teoh <=