[desktop-discuss] Compiler related checks in spec file

S h i v shivakumar.gn at gmail.com
Fri Aug 3 21:11:16 PDT 2007


The output of the configure script is dependent on the user shell
environment. If the shell environment of the person using the spec
file is different from that of the author of the spec file, then the
spec, the failure possibilities are high.

If user1's PATH includes only gcc and
If spec authors PATH includes both gcc and sun studio cc, then,
the output of configure script is different and the build part will
potentially fail at a very late stage(compile/link).

[1] Is there a way to have basic checks in the spec file (ex: Sun CC
is in the path or not) so that error can be flagged earlier.

More importantly,
[2] If both Sun cc and gcc are in the path, is there a way to say (in
the spec file) "use gcc only"

thanks and regards
Shiv


More information about the desktop-discuss mailing list