On Fri, 3 Apr 2009, DRC wrote:
(1) Adding a convenience option to the configure script that allows one
to pass an argument (for instance, 'configure --with-m32') that simply
adds -m32 to the default CFLAGS, CXXFLAGS, and LDFLAGS and sets the host
to i686-pc-linux-gnu. The problem with running
./configure --host i686-pc-linux-gnu --with-included-jpeg CFLAGS=-m32
CXXFLAGS=-m32 LDFLAGS=-m32
is that it builds the code without optimization! One would really need to run:
./configure --host i686-pc-linux-gnu --with-included-jpeg CFLAGS='-m32 -O3'
CXXFLAGS='-m32 -O3' LDFLAGS=-m32
Is it necessary to pass -m32 to "ld"? I cannot find anything in the
manpage about this. Assuming -m32 isn't necessary for ld, you can use:
make AM_CXXFLAGS=-m32 AM_CFLAGS=-m32
If ld needs it as well, there's an AM_LDFLAGS.
Since this is a generic mechanism, I'm not yet convinced that adding a
--with-m32 flag is motivated.
(2) I would like -O3 to be the default rather than -O2. This provides a
bit of additional performance for the Huffman codec.
-O3 is fine, we are already using it. I have no objections to making it
default. However, I'm not sure what's the best way of doing this.
Best regards,
---
Peter Åstrand ThinLinc Chief Developer
Cendio AB http://www.cendio.com
Wallenbergs gata 4
583 30 Linköping Phone: +46-13-21 46 00
------------------------------------------------------------------------------
_______________________________________________
Tigervnc-devel mailing list
Tigervnc-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/tigervnc-devel