Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / fpc-pascal / 2011-09

How does fpc Makefiles generate paths?

3 messages · 2 people ·

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

leledumbo

I don't want to maintain two separate tools, so I use unix tools from msys to build FPC. Since a few latest release, the tools no longer produce path in windows style (e.g. c:/folder/), but in unix style (e.g. \c\folder\). This causes failure when building fpc with 'cannot create archive blablabla...' message. From exploring msys mailing list, I found that it's either $(pwd) and $PWD that generates this path differently. Can anyone tell me which one is used by fpc Makefiles (or if it's neither of them, then that other way)?

View this message in context: http://free-pascal-general.1045716.n5.nabble.com/How-does-fpc-Makefiles-generate-paths-tp4797673p4797673.html Sent from the Free Pascal - General mailing list .
Marco van de Voort
to leledumbo

In our previous episode, leledumbo said:

Show quoted text 7 lines
I don't want to maintain two separate tools, so I use unix tools from msys to build FPC. Since a few latest release, the tools no longer produce path in windows style (e.g. c:/folder/), but in unix style (e.g. \c\folder\). This causes failure when building fpc with 'cannot create archive blablabla...' message. From exploring msys mailing list, I found that it's either $(pwd) and $PWD that generates this path differently. Can anyone tell me which one is used by fpc Makefiles (or if it's neither of them, then that other way)?

As fas as I know, PWD is an environment variable, and is initialized to the pwd.exe program found in the PATH.

Of course make can influence this (some make versions like cygwin's put their "system" directories always first in the PATH, maybe MSYS does now too).

Afaik FPC mostly uses the last mingw coreutils version, before they were integrated into msys, because of exactly these reasons. (the unix emulation paths)