"specs" related problems

Corinna Vinschen corinna.vinschen@cityweb.de
Thu Dec 24 20:20:00 GMT 1998


If you wish to set the default include paths, you may change
the *cpp line, e.g, to add /usr/local/include in case of cygwin,
but not for mingw:

original:
---------
*cpp:
-remap %(cpp_cpu) %{posix:-D_POSIX_SOURCE} %{!mno-cygwin:-D__CYGWIN32__ -D__CYGWIN__} %{mno-cygwin:-iwithprefixbefore include/mingw32 -D__MINGW32__=0.2}

/usr/local/include added:
-------------------------
*cpp:
-remap %(cpp_cpu) %{posix:-D_POSIX_SOURCE} %{!mno-cygwin:-D__CYGWIN32__ -D__CYGWIN__ -I/usr/local/include} %{mno-cygwin:-iwithprefixbefore include/mingw32 -D__MINGW32__=0.2}


If you take a look in the specs file, you will see, that it consists
only of a few simple statements. This and the fact, that the file
never was designed for user modification (as mentioned by Mumit),
implies also a _very_ simple parser. Unfortunately, I haven't found a
method, to get different search paths for different languages...

Additional example: Add directory `./lib' to library search path in any case:

original:
---------
*lib:
%{pg:-lgmon} %{!mno-cygwin:-lgcc -lcygwin} %{mno-cygwin:-lmingw32 -lmoldname -lcrtdll} %{mwindows:-luser32 -lgdi32 -lcomdlg32} -lkernel32 -ladvapi32 -lshell32

./lib added:
------------
*lib:
-L./lib %{pg:-lgmon} %{!mno-cygwin:-lgcc -lcygwin} %{mno-cygwin:-lmingw32 -lmoldname -lcrtdll} %{mwindows:-luser32 -lgdi32 -lcomdlg32} -lkernel32 -ladvapi32 -lshell32

Hope, this helps.

Regards,
Corinna
-
For help on using this list (especially unsubscribing), send a message to
"gnu-win32-request@cygnus.com" with one line of text: "help".



More information about the Cygwin mailing list