Current using -Os -pipe -march=pentium3m

Michael Proto mike at jellydonut.org
Thu Sep 18 18:13:38 UTC 2008


On Thu, Sep 18, 2008 at 6:40 AM, Daniel de Oliveira
<akulatraxas at gmail.com>wrote:

> Hi all
>
> I have some problems here trying to compile my system using..
>
> CPUTYPE?=pentium3m
> CFLAGS=-Os -pipe
>
> When I take off the CFLAGS, all things works properly. A lot of errors
> in different points occurs (kernel and buildworld), so at this point I
> dont a have log, btw, when I comment CFLAGS lines, everything compiles
> fine. Just for information, is there something wrong with that?
>
>
>
> Daniel de Oliveira
> ----
> Network and System Analyst
> Security Specialist
> IBM RISC Specialist
> IBM Storage Specialist
> Linux/Unix Specialist
> Linux User #: 405334
> _______________________________________________
> freebsd-current at freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-current
> To unsubscribe, send any mail to "freebsd-current-unsubscribe at freebsd.org"
>



Use at your own risk/peril, but I ran into a similar problem trying to
compile 8-CURRENT with -Os (I have a small PCEngines ALIX SBC with a 32MB
flash, so space is at a premium). After several long bouts of
trial-and-error, I found that several apps and libraries won't compile with
-Os, so I've set those to -O and they work.

Oh, and this is with -fno-strict-aliasing

Here's my make.conf, it may save you some time:

CPUTYPE?=pentium-mmx
CFLAGS= -Os -fno-strict-aliasing -pipe
COPTFLAGS= -O -pipe

.if ${.CURDIR:M*/src/lib/libkse}
  CFLAGS= -O -pipe
.endif
.if ${.CURDIR:M*/src/lib/libarchive}
  CFLAGS= -O -pipe
.endif
.if ${.CURDIR:M*/src/lib/libngatm}
  CFLAGS= -O -pipe
.endif
.if ${.CURDIR:M*/src/lib/librpcsec_gss}
  CFLAGS= -O -pipe
.endif
.if ${.CURDIR:M*/src/lib/libthr}
  CFLAGS= -O -pipe
.endif
.if ${.CURDIR:M*/src/sbin/geom/*}
  CFLAGS= -O -pipe
.endif
.if ${.CURDIR:M*/src/sbin/ggate/*}
  CFLAGS= -O -pipe
.endif
.if ${.CURDIR:M*/src/usr.bin/csup}
  CFLAGS= -O -pipe
.endif
.if ${.CURDIR:M*/src/usr.sbin/acpi/acpidump}
  CFLAGS= -O -pipe
.endif



-Proto


More information about the freebsd-current mailing list