Tiny Core Extensions > TCE Corepure64
Suggested compiler flags for compiling extensions?
(1/1)
sihorton:
The suggested compiler flags for compilation of the 32 bit extensions are as follows:-
export CFLAGS="-march=i486 -mtune=i686 -Os -pipe"
export CXXFLAGS="-march=i486 -mtune=i686 -Os -pipe"
export LDFLAGS="-Wl,-O1"
(See http://wiki.tinycorelinux.net/wiki:creating_extensions) what should we use when compiling for Corepure64?
Juanito:
CFLAGS="-mtune=generic -Os -pipe"
CXXFLAGS="-mtune=generic -Os -pipe -fno-exceptions -fno-rtti"
...and BTW you can use "...-fno-exceptions -fno-rtti"" with 32-bit extensions too. With both 32 and 64-bit it will fail in some cases.
sihorton:
Thanks again Juanito!
I am working on building the nodejs extension for Corepure64 so I can use these compiler flags.
/Simon
Navigation
[0] Message Index
Go to full version