This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c/80182] gcc -lm -o
- From: "pinskia at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Sat, 25 Mar 2017 12:17:56 +0000
- Subject: [Bug c/80182] gcc -lm -o
- Auto-submitted: auto-generated
- References: <bug-80182-4@http.gcc.gnu.org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80182
Andrew Pinski <pinskia at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |WAITING
Last reconfirmed| |2017-03-25
Ever confirmed|0 |1
--- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
Do you that you were getting undefined symbols when having -lm before any
object/source file? If so this is not a gcc bug (or a linker one). This is how
single pass linker work. Note if libm is a shared library normally it would
force the linker to link to it except on Linux distros where --as-needed is
default.