hi!
Takashi Ono wrote:
Hi All,
In current OOo source tree, detailed compiler version check is being done in
solenv/inc/tg_compv.mk and set to CCNUMVER. Compler version is also checked at
configure time but the detailed version number does not seem to be passed to the
build environment.
I am implementing mingw port and considering to support different experimental
versions of mingw compilers. However, different versions of gcc compilers emit
warnings in different manners and I have to change default compiler switches between
versions. Unless, we have to face so many useless warnings or suppress many useful
warnings. So I have to check the compiler version in solenv/inc/wntgcci6.mk but
platform specific makefiles are included before solenv/inc/tg_compv.mk!
i see your problem...
I wonder why can't we pass the compiler version from the configure script and would
like to have any suggestions.
there is no configure in SO environment...
what came into my mind was something like this:
in wntgcci.mk:
CFLAGSWARNCC<some compiler numver>=-Wsomething
CFLAGSWARNCC<some other compiler numver>=-Wsomething_else
and and in settings.mk somewhere in the area of line 1170
.IF "$(CFLAGSWARNCC$(CCNUMVER))"!=""
CFLAGSWARNCC=$(CFLAGSWARNCC$(CCNUMVER))
.ENDIF
the idea behind: use the default and don't change the current settings
if there is no specific setting available.
disclaimer: just an idea and completely untested :)
hope it helps...
[...]
tschau...
ause
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]