This is the mail archive of the
glibc-bugs@sourceware.org
mailing list for the glibc project.
[Bug math/20539] GCC 7 -static -lm fails to link at -O3
- From: "hjl.tools at gmail dot com" <sourceware-bugzilla at sourceware dot org>
- To: glibc-bugs at sourceware dot org
- Date: Tue, 30 Aug 2016 18:31:07 +0000
- Subject: [Bug math/20539] GCC 7 -static -lm fails to link at -O3
- Auto-submitted: auto-generated
- References: <bug-20539-131@http.sourceware.org/bugzilla/>
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.