Tiny Core Linux

Tiny Core Extensions => TCE Corepure64 => Topic started by: sihorton on March 11, 2013, 01:07:25 PM

Title: Suggested compiler flags for compiling extensions?
Post by: sihorton on March 11, 2013, 01:07:25 PM
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?
Title: Re: Suggested compiler flags for compiling extensions?
Post by: Juanito on March 11, 2013, 08:15:18 PM
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.
Title: Re: Suggested compiler flags for compiling extensions?
Post by: sihorton on March 12, 2013, 02:33:19 AM
Thanks again Juanito!

I am working on building the nodejs extension for Corepure64 so I can use these compiler flags.

/Simon