mingw32-sqlite

Erik van Pienbroek erik at vanpienbroek.nl
Thu Apr 23 12:13:21 UTC 2009


Op donderdag 23-04-2009 om 13:49 uur [tijdzone +0200], schreef Thomas
Sailer:
> On Thu, 2009-04-23 at 13:17 +0200, Erik van Pienbroek wrote:
> 
> > Why are you overriding the MINGW32_CFLAGS here? Isn't there
> > a ./configure option to archieve the same effect?
> 
> Unfortunately, no.
> 
> Furthermore, the native package also does it this way...

The way you've overriden the MINGW32_CFLAGS might cause issues in the
future when the MINGW32_CFLAGS in /etc/rpm/macros.mingw32 might get
changed.

You can try to change the line:
export MINGW32_CFLAGS="-O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2
-fexceptions --param=ssp-buffer-size=4 -mms-bitfields
-DSQLITE_ENABLE_COLUMN_METADATA=1 -DSQLITE_DISABLE_DIRSYNC=1
-DSQLITE_ENABLE_FTS3=3 -DSQLITE_ENABLE_RTREE=1 -fno-strict-aliasing"

to this:
export MINGW32_CFLAGS="$MINGW32_CFLAGS -DSQLITE_ENABLE_COLUMN_METADATA=1
-DSQLITE_DISABLE_DIRSYNC=1 -DSQLITE_ENABLE_FTS3=3
-DSQLITE_ENABLE_RTREE=1 -fno-strict-aliasing"

This way, the original MINGW32_CFLAGS will still be honored. Note that I
haven't tried a build yet using this method, so you might want to test
it out first to verify it uses the right CFLAGS.

Regards,

Erik van Pienbroek




More information about the mingw mailing list