Interpolating construction variables in compiler flags
"H. S. Teoh" <[email protected]> Tue, 11 Mar 2003 22:47:59 -0500
| Newsgroups | gmane.comp.gnu.cons.general |
|---|---|
| Message-ID | <20030312034759.GA23614@crystal> |
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 _______________________________________________ [email protected] http://mail.gnu.org/mailman/listinfo/cons-discuss Cons URL: http://www.dsmit.com/cons/