cons-discuss
[Top][All Lists]
Advanced

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

INCDIRSUFFIX ?


From: Johan Holmberg
Subject: INCDIRSUFFIX ?
Date: Mon, 12 Feb 2001 10:28:38 +0100 (MET)

Somtimes I use a weird C-compiler that expects -I directives to
look like

                -Isome/path/ending/in/slash/

I guess the compiler just does a simple concatenation of the path
with the included files name.

In previous versions of "cons" I could set CPPPATH in cons
environment to something like:

                CPPPATH => [ "some/path/ending/in/slash/" ],


But somewhere along the way, when "cons" was restructured/changed
this stopped to work. I realise now that this just "happened" to
work before.

To be able to run the latest cons on my old "Construct" files I have
patched my local copy of cons: I have invented a "INCDIRSUFFIX"
variable, that works exactly like INCDIRPREFIX, but is added "at the
end". If INCDIRSUFFIX isn't defined, it works exactly as before.

Is this a too "esoteric" change to be included in ordinary "cons" ?
If it is, I'll have to maintain my local diffs when new versions
of cons arrive. This is not a great problem, but I thought I should
at least ask ....

/Johan Holmberg


Index: src/cons.pl
===================================================================
RCS file: /cvs/cons/src/cons.pl,v
retrieving revision 1.145
diff -r1.145 cons.pl
2180c2180
<       $iflags .= " ".$env->{INCDIRPREFIX}.$dpath
---
>       $iflags .= " ".$env->{INCDIRPREFIX}.$dpath.$env->{INCDIRSUFFIX}
2187c2187
<                   $iflags .= " ".$env->{INCDIRPREFIX}.$d;
---
>                   $iflags .= " ".$env->{INCDIRPREFIX}.$d.$env->{INCDIRSUFFIX};
2193c2193
<                   $iflags .= " ".$env->{INCDIRPREFIX}.$rpath if -d $rpath;
---
>                   $iflags .= " 
> ".$env->{INCDIRPREFIX}.$rpath.$env->{INCDIRSUFFIX} if -d $rpath;





reply via email to

[Prev in Thread] Current Thread [Next in Thread]