Originally Posted by indienick
I get the overwhelming urge to tell you not to follow Gentoo docs. Gentoo does have a very good documentation selection, yes, however when looking at distro-specific documentation (as 95% of Gentoo documentation tends to be specific to Gentoo) don't be so sure that you can transfer it over to a different distribution and have it carry over.
If you read the Gentoo documentation you got that environment variable from, you would notice that it's meant to reside in a file called "/etc/make.conf". On Debian, that file doesn't exist.
I know that there are lots of differences but always I was trying to solve a porblem I've found the answer in gentoo wiki. I don't copy the solutions 1:1. Just try to take some advice.
Anyway I'll try to compile openoffice with that alias but I'm not sure what would happen if a debian/rules script override some of this flags.
e.g. var ARCH := $(shell dpkg-architecture -qDEB_HOST_ARCH) get the i386 value. I guess it's connected with -march flag. Am I wrong?
Sometimes I see a flag -O2 in other packages (in debian/rules). What would happen if there are both -03 (from alias) and -O2 (from a script) flags?
Thanks for a solution.
Openoffise's going to compile for more than 10h
I've been compiling in that package like you told me and I've noticed that gcc gives me the following log for almost every file belongs to openoffice package. That's a small screenshot
from my compiling.
-mtune is setted for pentiumpro. That's not the architecture I wanted to use
man gcc describe that there are lots of arch between mentioned ones:
i386, i486, i586 (pentium), pentium-mmx,
pentiumpro, i686, pentium2, pentium3, pentium3m, pentium-m, pentium4, pentium4m,
prescott /Improved version of Intel Pentium4 CPU with MMX, SSE, SSE2 and SSE3 instruction set support/
I've found another solution. There is a ARCH_FLAGS var but I don't know where should I use it.
openoffice.org (1.1.1-3) unstable; urgency=medium (...)
* New patches: (...)
- build-arch-flags: support ARCH_FLAGS to change compiler flags from envrionment [MM]
Should I put add that var into the debian/rules file?
I've found two patches that can propobly help inside the source (openoffice.org-2.2.1/ooo-build/patches/src680: testing-more-optimizations-ark.diff and mandriva-archflags.diff) and they reference to the following files:
I can't see that files. So how can I use the patches?
I know that they change these vars:
Anyone can help me solve that problem?
That files are in ooo-build/src/OOo_2.2.1_src_core.tar.bz2.dfsg archive.
I'll try to edit them and start compilation.
I think that the most important thing is to edit: