Quote:
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
####
UPDATE:
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/
####
UPDATE 2
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:
solenv/inc/unxlngi4.mk.mdvarch
solenv/inc/unxlngi4.mk
solenv/inc/unxlngi5.mk.mdvarch
solenv/inc/unxlngi5.mk
solenv/inc/unxlngi6.mk.mdvarch
solenv/inc/unxlngi6.mk
I can't see that files. So how can I use the patches?
I know that they change these vars:
-ARCH_FLAGS*=-mcpu=pentiumpro
+ARCH_FLAGS*=-mtune=pentiumpro
+ARCH_FLAGS_CC*=$(ARCH_FLAGS)
+ARCH_FLAGS_CXX*=$(ARCH_FLAGS)
+ARCH_FLAGS_OPT*=-O1
Anyone can help me solve that problem?
#####
UPDATE 3
That files are in ooo-build/src/OOo_2.2.1_src_core.tar.bz2.dfsg archive.
./OOF680_m18/solenv/inc/unxlngi6.mk
./OOF680_m18/solenv/inc/unxlngi4.mk
./OOF680_m18/solenv/inc/unxlngi5.mk
I'll try to edit them and start compilation.
#####
UPDATE 4
I think that the most important thing is to edit:
./ooo-build/patches/src680/debian-opt.diff