Wireshark-commits: [Wireshark-commits] master 55cd530: FindM.cmake: directly pass -lm to fix select
URL: https://code.wireshark.org/review/gitweb?p=wireshark.git;a=commit;h=55cd530cf0db8ff7375f58a95ad9ca40a80509a2
Submitter: "Anders Broman <a.broman58@xxxxxxxxx>"
Changed: branch: master
Repository: wireshark
Commits:
55cd530 by Peter Wu (peter@xxxxxxxxxxxxx):
FindM.cmake: directly pass -lm to fix selective static linking
When CMAKE_FIND_LIBRARY_SUFFIXES is set to ".a" (in order to find only
static libraries), executables would be linked with libm.a. This fails
when the C runtime is not statically linked as well:
https://bugzilla.redhat.com/show_bug.cgi?id=1433347
Change-Id: I1480607bd3d0678661694657a2709ee1c56f9530
Reviewed-on: https://code.wireshark.org/review/30253
Petri-Dish: Peter Wu <peter@xxxxxxxxxxxxx>
Tested-by: Petri Dish Buildbot
Reviewed-by: Anders Broman <a.broman58@xxxxxxxxx>
Actions performed:
from 54286eb FindGLIB2.cmake: workaround to make static linking work
add 55cd530 FindM.cmake: directly pass -lm to fix selective static linking
Summary of changes:
cmake/modules/FindM.cmake | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)