As reported in bug 403915 it should set: - x86: -march=i686 -mtune=generic -O2 -pipe - amd64: -march=x86-64 -mtune=generic -O2 -pipe Thanks
Patches welcome. Matt might have already something handy.
Well, I didn't contribute patches because I am unsure about how to check we want to compile x86 or amd64 binpkgs :-/
I guess we can close this now.
How was this CFLAGS issue solved finally? Thanks for the info :)
(In reply to comment #4) > How was this CFLAGS issue solved finally? Thanks for the info :) I dont know exactly how Matthew Summers solved it for the packages he generated, but I use two chroots for amd64 and x86 libreoffice-bin, and just set the -march parameter to the smallest common denominator for the entire chroot now. CFLAGS="-march=x86-64 -mtune=generic -O2 -pipe -g" or CFLAGS="-march=i586 -mtune=generic -O2 -pipe -g"
OK, do you mind adding a commented note in script to tell people to set proper CFLAGS when running it?
(In reply to comment #6) > OK, do you mind adding a commented note in script to tell people to set > proper CFLAGS when running it? Can do, but since it's not stored at any centralized place... (A git repo for a single file does not make too much sense.)
Well, showing an "echo" with this information in generate_libreoffice_package.sh script would be enough
Those are the CFLAGS I used, in Comment 5. I only build for 64bit though. I thought the script was in the files dir for libreoffice, no?
(In reply to comment #9) > I > thought the script was in the files dir for libreoffice, no? Doh, I did not know that. I've updated it with my newest version, and left a comment in there about the required CFLAGS.
Thanks! :D