https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87231

--- Comment #9 from pietro <pietro at gcc dot gnu.org> ---
(In reply to Thomas Schwinge from comment #8)
> 
> Otherwise, you may specify '--disable-fixincludes' to work around issues
> there;
> <https://inbox.sourceware.org/beab3bf7-7045-4de9-b09c-fc0a1eab5889@app.
> fastmail.com> "Re: [PATCH 3/3] fixincludes: Remove unnecessary OpenBSD
> fixes".
> 
> 
> And, both '--enable-host-pie' and '--enable-default-pie' are necessary;
> PR69757 "OpenBSD requires -fPIC to build".

The full options I used were:

../gcc/configure --disable-fixincludes --disable-multilib --disable-nls
--with-system-zlib --with-as=/usr/local/bin/gas --with-gnu-ld --with-gnu-as
--enable-standard-branch-protection --enable-default-ssp --enable-default-pie
--enable-host-pie --enable-host-bind-now --enable-wchar_t
--enable-threads=posix

I'm not sure if they are all needed. I got to them via trial and error and
copying stuff form the internet.

Reply via email to