HomeClusterLabs Projects

build: linking with libm is unnecessary on some systems (like OS X)

Description

build: linking with libm is unnecessary on some systems (like OS X)

Inlining of builtin functions can eliminate the libm dependency on other
systems as well, but AC_SEARCH_LIBS can't detect this because it tests
with a false prototype. Thus we use --as-needed linking already to trim
such unnecessary dependencies.

Signed-off-by: Ferenc Wágner <wferi@debian.org>

Details

Provenance
wferiAuthored on Jan 28 2018, 5:53 PM
fabbioneCommitted on Jan 30 2018, 1:28 AM
Parents
rK150e9883604e: build: use --as-needed to avoid unnecessary dependency on libm
Branches
Unknown
Tags
Unknown

Event Timeline