[Bug libstdc++/60789] [4.9 Regression] Missing -lm while checking for math functions (e.g., atan2f)

david.abdurachmanov at gmail dot com gcc-bugzilla@gcc.gnu.org
Wed Apr 9 22:56:00 GMT 2014


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=60789

David Abdurachmanov <david.abdurachmanov at gmail dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|---                         |INVALID

--- Comment #2 from David Abdurachmanov <david.abdurachmanov at gmail dot com> ---
I am marking it as RESOLVED INVALID.

After looking more closely, I found a typo in CXXFLAGS. It caused the following
test to fail in the first place:

>From libstdc++-v3/linkage.m4 in GLIBCXX_CHECK_MATH_SUPPORT:

361   dnl Check libm
362   AC_CHECK_LIB(m, sin, libm="-lm")
363   ac_save_LIBS="$LIBS"
364   LIBS="$LIBS $libm"

Thus `-lm` was not added for the rest of the tests.



More information about the Gcc-bugs mailing list