The
wiki page on creating extensions currently indicates that we should set
LDFLAGS="-Wl,-O1".
I have this set by default in my environment and it turned out to cause me some major pain when trying to compile python's numpy from scratch due to the fact that it overrides LDFLAGS used by python's distutils (I didn't know that). unset'ing LDFLAGS resolved all my issues.
It got me wondering why that recommendation is there in the first place. Does
-O1 help a lot for tinycore extensions in some way? I don't know if it is typical for an LDFLAGS environment variable to completely override a makefile's linker settings, rather than complement them, but if so... should it really be the recommended default?