Current-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: build failure when optimizing



oskar%fessel.org@localhost wrote:
> Am 24.05.2020 um 01:06 schrieb Tobias Nygren <tnn%NetBSD.org@localhost>:
> 
> On Sat, 23 May 2020 22:25:55 +0200
> oskar%fessel.org@localhost wrote:
> 
>> I just tried to build release with optimisation for my little xeon server.
>> That fails, but I don?t understand why it seems to build some 386 32bit libs.
> 
> You can build with MKCOMPAT=no to avoid this problem if you don't need
> 32-bit compatibility libs.

>Thanks again, MKCOMPAT really is case-sensitive, so no is better than
>NO, but nevertheless, im still not getting through the build process:

[snip]

>how comes?  And what can I do?

You could just use the default compiler settings, I wouldn't expect it
to make much difference on x86_64.

Maybe try this (not tested):

Index: Makefile
===================================================================
RCS file: /cvsroot/src/libexec/ld.elf_so/Makefile,v
retrieving revision 1.143
diff -u -r1.143 Makefile
--- Makefile    9 Feb 2020 09:11:59 -0000       1.143
+++ Makefile    26 May 2020 21:31:22 -0000
@@ -51,7 +51,7 @@
 LDFLAGS+=      -Wl,--warn-shared-textrel
 LDFLAGS+=      -Wl,-Map=${.TARGET}.map
 
-COPTS+=                -fvisibility=hidden
+COPTS=         -fvisibility=hidden
 
 # Adds SRCS, CPPFLAGS, LDFLAGS, etc.  Must go first so MD startup source
 # is first.


Home | Main Index | Thread Index | Old Index