Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 16 Feb 2021 12:22:40 +0000
From:      bugzilla-noreply@freebsd.org
To:        ports-bugs@FreeBSD.org
Subject:   [Bug 253275] [exp-run] base system PIE default
Message-ID:  <bug-253275-7788-aWVgfbhOSP@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-253275-7788@https.bugs.freebsd.org/bugzilla/>
References:  <bug-253275-7788@https.bugs.freebsd.org/bugzilla/>

next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D253275

Dawid Gorecki <dgr@semihalf.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |dgr@semihalf.com

--- Comment #14 from Dawid Gorecki <dgr@semihalf.com> ---
I haven't looked at all the ports yet, but from what I've seen, ports fail =
due
to few reasons. Some ports build static libraries and it seems that current=
ly
the best way to fix this is by setting WITHOUT_PIE.

Some other ports could most likely work with PIE enabled, but makefiles
override default system CFLAGS and still use default LDFLAGS. This causes
linker to try linking with -pie but without -fPIC being used in compiling.
audio/play is an example, it overrides CFLAGS with -O.

Another reason that I've seen is caused by setting CFLAGS=3D"${CFLAGS}" in
MAKE_ARGS. I'm not really sure how bmake works in this case, but I think th=
at
it starts ignoring any further processing of CFLAGS and we are left with CF=
LAGS
from sys.mk and no modifications made in bsd.prog.mk are taken into account.
This happens for www/mathopd. I removed MAKE_ARGS for that and it built fin=
e.
-DFREEBSD_SENDFILE was also properly passed further. I haven't tested if it
works after building though, but I don't see any reason why it shouldn't.

--=20
You are receiving this mail because:
You are on the CC list for the bug.=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-253275-7788-aWVgfbhOSP>