From bdc5c59214a9e4bd9a299deead29c04ddf141256 Mon Sep 17 00:00:00 2001 From: Szabolcs Nagy Date: Mon, 2 Oct 2017 13:01:02 +0100 Subject: fix gamma symbol for static linking and new targets The lgamma compat code is no longer built for !LIBM_SVID_COMPAT targets, but the legacy gamma, gammaf and gammal symbols should be still defined, so make them aliases to the non-compat lgamma code. * math/w_lgamma.c: New file. * math/w_lgammaf.c: New file. * math/w_lgammal.c: New file. --- math/w_lgamma.c | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 math/w_lgamma.c (limited to 'math/w_lgamma.c') diff --git a/math/w_lgamma.c b/math/w_lgamma.c new file mode 100644 index 0000000000..04b9b197f2 --- /dev/null +++ b/math/w_lgamma.c @@ -0,0 +1,10 @@ +#include +#include +#if __USE_WRAPPER_TEMPLATE +strong_alias (__lgamma, __gamma) +weak_alias (__gamma, gamma) +# ifdef NO_LONG_DOUBLE +strong_alias (__gamma, __gammal) +weak_alias (__gammal, gammal) +# endif +#endif -- cgit v1.2.3