Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 15 Mar 2017 10:08:29 +0000
From:      bugzilla-noreply@freebsd.org
To:        freebsd-toolchain@FreeBSD.org
Subject:   [Bug 214258] devel/openmp: spurious libm dependency
Message-ID:  <bug-214258-29464-5OYI25lJYv@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-214258-29464@https.bugs.freebsd.org/bugzilla/>
References:  <bug-214258-29464@https.bugs.freebsd.org/bugzilla/>

next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D214258

Konstantin Belousov <kib@FreeBSD.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |kib@FreeBSD.org

--- Comment #5 from Konstantin Belousov <kib@FreeBSD.org> ---
(In reply to Jan Beich (mail not working) from comment #4)
A library cannot 'pick up symbols without referencing them'.  The presence =
of
the the undefined references means that there are real references in the co=
de.

Note that existence of libm.so as a separate shared object from libc is a m=
inor
optimization.  The libm services are mandated by the C standard, so the
separate library is only a way to slighly reduce working set of the programs
that do not need them.  Linking it in is fine.

If you are so intolerate to the presence of -lm in the dependency list even
when symbols are not referenced, you can use '-Wl,--as-needed -lm
-Wl,--no-as-needed' construct to only record DT_NEEDED fro libm.so when
references actually exist.

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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-214258-29464-5OYI25lJYv>