Re: FVWM: Compiling FVWM with optimizations

From: Mikhael Goikhman <migo_at_homemail.com>
Date: Wed, 27 Mar 2002 10:17:31 +0000

On 27 Mar 2002 01:52:17 -0500, Walter Dnes wrote:
>
> I'm currently working on getting CRUX linux ( http://crux.nu ) running
> on my second machine. It's a lightweight, but up-to-date, highly
> optimized linux. Everything is supposed to be optimized as "march=i686".
> I've done the standard "./configure && make && make install" routine,
> but tweaking compiler options is new to me. My first guess is something
> like...
>
> set CFLAGS="-O2 -march=i686"
> export CFLAGS
>
> Is this correct, and if not, what should I be doing ?

If you do this before ./configure, it will use these optimizations in all
tests (determining whether you have xpm, gnome-libs, stroke and all other
supports). This may give bad test results in some CFLAGS cases, but it is
usually ok. Additionally ./configure produces Makefiles with the given
CFLAGS instead of the default "-g -O2 -Wall" or "-g -O2".

"make" itself does not use environment $CFLAGS, it uses what is configured
at ./configure time. But you may pass CFLAGS to "make" like this:

  % make clean
  % make all CFLAGS="-O3 -march=i686"
  % sudo make install

Regards,
Mikhael.
--
Visit the official FVWM web page at <URL: http://www.fvwm.org/>.
To unsubscribe from the list, send "unsubscribe fvwm" in the body of a
message to majordomo_at_fvwm.org.
To report problems, send mail to fvwm-owner_at_fvwm.org.
Received on Wed Mar 27 2002 - 04:17:58 GMT

This archive was generated by hypermail 2.3.0 : Mon Aug 29 2016 - 19:37:52 BST