This is the mail archive of the glibc-bugs@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug math/20539] GCC 7 -static -lm fails to link at -O3


https://sourceware.org/bugzilla/show_bug.cgi?id=20539

--- Comment #2 from H.J. Lu <hjl.tools at gmail dot com> ---
(In reply to Andrew Senkevich from comment #1)
> I think no, it is separate library.
> 
> For static builds needed to add both options with the following order:
> -lmvec -lm.
> It is reflected in documenation at https://sourceware.org/glibc/wiki/libmvec

This means:

1. One may get a link error when GCC 7 is used on x86-64.
2. -lmvec is needed only for glibc 2.23 or above on x86-64 with -static.

It makes x86-64 different from other targets and makes libmvec less
transparent.  Special rules are needed to create static executable for
x86-64.

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

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]