Subject: adding a platform specific (cygwin) gcc wrapper for -o
To:, <>
From: Jeremy C. Reed <>
List: tech-pkg
Date: 12/22/2004 15:03:11
What is the correct pkgsrc way to add a platform specific gcc wrapper for

In particular, I want all "gcc -o filename" to be changed to "gcc -o
filename." (with the trailing period) on cygwin.

 Jeremy C. Reed

p.s. gcc on cygwin uses TARGET_EXECUTABLE_SUFFIX to force .exe extension.
But other tools are broken because cygwin attempts to guess when .exe is
used and often fail. (One example is strip(1) doesn't know to add .exe but
cp does.)  This workaround above will force it to skip adding this .exe
extension. This means that old Windows 9x will not be supported for now.

p.p.s. If anyone knows how to override the compiled in
TARGET_EXECUTABLE_SUFFIX for gcc with some specs or other configuration,
please let me know.