Tiny Core Extensions > TCE Corepure64
Compiling Corepure64 Extensions
Juanito:
To compile extensions, please use:
CFLAGS="-mtune=generic -Os -pipe"
CXXFLAGS="-mtune=generic -Os -pipe -fno-exceptions -fno-rtti"
Note that "-fno-exceptions -fno-rtti" will not work for all extensions - gtkmm and similar for example - but will result in smaller output when it does work.
..and you can try:
CC="gcc -flto -fuse-linker-plugin"
CXX="g++ -flto -fuse-linker-plugin"
..which doesn't always compile, but results in smaller output when it does work.
Apologies to the maintainers of x86 extensions whose *.info files were copied and pressed into service for the x86_64 repo. You are of course welcome to take over the maintenance of the relevant x86_64 extension if you so wish.
Note that x86 extensions that do not contain 32-bit binaries - font extensions for example - should work on x86_64.
gordon64:
Hi Juanito
I am just starting to compile for 64 bit and found this thread.
and wiki entry has this quote
http://wiki.tinycorelinux.net/wiki:creating_extensions
--- Quote ---export CFLAGS="-mtune=generic -Os -pipe"
export CXXFLAGS="-mtune=generic -Os -pipe"
export LDFLAGS="-Wl,-O1"
--- End quote ---
as I have never compiled 64 bit in the past can you when you get a chance state what is your preferred first compile options please. I read your post as meaning
try your first set without the LDFLAGS and if that fails then try your next set.
cheers
PS I was called aus9 in the past.
Juanito:
I'm usually using:
--- Code: ---CC="gcc -flto -fuse-linker-plugin -mtune=generic -Os -pipe" CXX="g++ -flto -fuse-linker-plugin -mtune=generic -Os -pipe -fno-exceptions -fno-rtti" ./configure --blah --blah
--- End code ---
.
Sometimes "-flto -fuse-linker-plugin" doesn't work and has to be removed and sometimes "-fno-exceptions -fno-rtti" has to be removed. I am usually not using LDFLAGS.
You can see what has been used at:
http://tinycorelinux.net/6.x/x86_64/tcz/src
Welcome back :)
gordon64:
thanks for link....actually I had been perusing an earlier release.
sorry to harp on this but I want to get it correct. Do you have any objection to this TCZ build entry?
--- Code: ---export CC="gcc -flto -fuse-linker-plugin -mtune=generic -Os -pipe"
export CXX="g++ -flto -fuse-linker-plugin -mtune=generic -Os -pipe -fno-exceptions -fno-rtti"
export PKG_CONFIG_PATH=/usr/local/lib/pkgconfig:/usr/lib/pkgconfig
--- End code ---
I added pkgconfig stuff to force ./configure not to need any pkgconfig entry in the ./configure line if that makes sense?
To save you reading other post I am looking at man-db over the next few days with luck
Juanito:
You don't need to use the pkgconfig line, it was set when pkgconfig was compiled.
Navigation
[0] Message Index
[#] Next page
Go to full version