Re: Old Computers, -Os, Stripping, and 4-STABLE

From: Nikolas Britton (freebsd_at_nbritton.org)
Date: 12/18/04

  • Next message: J65nko BSD: "Re: X kills su"
    Date: Sat, 18 Dec 2004 11:58:22 -0600
    To: Kris Kennaway <kris@obsecurity.org>
    
    

    Kris Kennaway wrote:

    >On Wed, Dec 15, 2004 at 06:48:42AM -0600, Nikolas Britton wrote:
    >
    >
    >
    >>1. I'd like to know if it's (relatively) safe to use -Os for CFLAGS and
    >>COPTFLAGS?
    >>
    >>
    >
    >Only on 5.3 and above.
    >
    >Kris
    >
    >

    Thanks but I desided to try it anyways, I set -Os for CFLAGS and
    COPTFLAGS and cvsup'd 4-STABLE, built world and kernel with no build
    errrors and no other problems after reboot, then I cvsup'd and did a
    rebuild of all my ports, again no problems. I even rebuilt my kernel
    becouse I had some options I needed to add/remove, again no problems.

    FreeBSD stumbleine.intranet 4.11-PRERELEASE FreeBSD 4.11-PRERELEASE #5:
    Thu Dec 16 07:04:09 CST 2004
    root@stumbleine.intranet:/usr/src/sys/compile/STUMBLEINE i386

    make.conf:
    CPUTYPE=I586
    CFLAGS= -Os -pipe
    COPTFLAGS= -Os -pipe
    KERNCONF=STUMBLEINE

    _______________________________________________
    freebsd-questions@freebsd.org mailing list
    http://lists.freebsd.org/mailman/listinfo/freebsd-questions
    To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.org"


  • Next message: J65nko BSD: "Re: X kills su"

    Relevant Pages

    • Re: FFLAGS instead of COPTFLAGS in module builds?
      ... >> My CFLAGS was used instead of the COPTFLAGS, ... Something similar also happend to me when I compiled my Stable kernel. ... During the compilation of the ACPI module the ...
      (freebsd-current)
    • Re: FreeBSD 6
      ... COPTCLAGS is for the kernel only. ... >supported for CFLAGS or COPTFLAGS. ... >break some ports. ...
      (freebsd-questions)
    • Re: FreeBSD 6
      ... But if I specify some CFLAGS, ... COPTCLAGS is for the kernel only. ... supported for CFLAGS or COPTFLAGS. ... CPUTYPE=p2 will break ports. ...
      (freebsd-questions)
    • RE: /usr/src/sys/dev/aic7xxx errors when compiling
      ... Thx for answering. ... hmm..., I'm not using -O3 for the kernel, or at least I thought I ... Does it mean that COPTFLAGS & CFLAGS are actually merged?! ...
      (freebsd-questions)
    • Re: 2.6.24-rc1-82798a1 compile failure (x86_64)
      ... ignore those and set its own CFLAGS, ... The kernel will now honour the users CFLAGS setting as you just discovered. ... The flags will be appended to the flags specified by the kernel. ... extra-CFLAGS option to .config and perhaps a 'make configpickupCFLAGS' ...
      (Linux-Kernel)