Index | Thread | Search

From:
izder456 <izder456@disroot.org>
Subject:
Re: Question regarding compiler flags in the ports tree v. outside of the ports tree
To:
ports@openbsd.org
Cc:
Stuart Henderson <stu@spacehopper.org>
Date:
Sun, 8 Dec 2024 13:52:23 -0600

Download raw body.

Thread
On Sun, 8 Dec 2024 19:22:09 +0000
Stuart Henderson <stu@spacehopper.org> wrote:

> On 2024/12/08 12:48, izder456 wrote:
> > This leads me to believe that ports uses some non-default compiler
> > flags that clang on amd64 base doesn't otherwise use by default.
> 
> Compare the compiler commands printed when it builds?
> 

Duh! Thanks for keeping me in check. Seems that ports adds a -O2 -pipe
to the compiler flags. -pipe itself is fine, but -O2 and above seems to
cause instability, so I set CFLAGS & CXXFLAGS to -O1 -pipe, things seem
AOK!

Thanks again Stuart, this was rather obvious- silly me.

Appreciated-

-- 
iz (they/them)

> i like to say mundane things,
> there are too many uninteresting things
> that go unnoticed.

izder456 (dot) neocities (dot) org