Bug#717014: gnat-4.6: on some archs, a library using Elementary_Functions needs -lm

2014-02-23 Thread Nicolas Boulenguez
Package: gnat-4.6 Followup-For: Bug #717014 For the record, here are two sensible work-arounds: * in linker options: -Wl,--as-needed -lm -Wl,--no-as-needed * in a GNAT project: case External (NEEDS_LM) is when yes = for Library_Options use (-lm); when no = null;

Bug#717014: gnat-4.6: on some archs, a library using Elementary_Functions needs -lm

2013-07-15 Thread Nicolas Boulenguez
Package: gnat-4.6 Version: 4.6.4-1 Severity: normal On armel armhf ia64 m68k mips mipsel powerpc s390 s390x sparc, the following scenario complains about the cos, sin, etc symbols being undefined. Adding -lm to library_options (used at the end of the link command) fixes the problem, but gnat