Developer forums (C::B DEVELOPMENT STRICTLY!) > Development
Buildig CodeBlocks using autotools under windows
tomjnx:
Version 2 of the patch. I reduced if WIN32 usage a lot, and removed lots of unnecessary defines.
oBFusCATed:
Why don't you define a CROSS_COMP_CFLAGS/LDFLAGS in the configure.in/.ac and then used them, when they are needed?
If the current compile is not for CrossComp, define them blank.
This way the ifdefs will be only in one file.
tomjnx:
--- Quote from: oBFusCATed on May 03, 2011, 05:52:05 pm ---Why don't you define a CROSS_COMP_CFLAGS/LDFLAGS in the configure.in/.ac and then used them, when they are needed?
If the current compile is not for CrossComp, define them blank.
This way the ifdefs will be only in one file.
--- End quote ---
That could work for some of the LDFLAGS (namely the auto import/export all options), but it does not work for the CFLAGS, due to the windows dllimport/dllexport stupidity and the way wx conventions handle these. There aren't many CFLAGS conditionals left anyway.
Thinking about how this could help the LDFLAGS case.
tomjnx:
Ok most conditionals zapped.
Navigation
[0] Message Index
[*] Previous page
Go to full version