mirror of
https://sourceware.org/git/glibc.git
synced 2024-11-23 01:33:36 +08:00
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.
This commit is contained in:
parent
bd4430c2a6
commit
bdc5c59214
@ -1,3 +1,9 @@
|
||||
2017-10-02 Szabolcs Nagy <szabolcs.nagy@arm.com>
|
||||
|
||||
* math/w_lgamma.c: New file.
|
||||
* math/w_lgammaf.c: New file.
|
||||
* math/w_lgammal.c: New file.
|
||||
|
||||
2017-10-02 Szabolcs Nagy <szabolcs.nagy@arm.com>
|
||||
|
||||
* sysdeps/ieee754/flt-32/e_log2f.c (__log2f): Define without wrapper.
|
||||
|
10
math/w_lgamma.c
Normal file
10
math/w_lgamma.c
Normal file
@ -0,0 +1,10 @@
|
||||
#include <math-type-macros-double.h>
|
||||
#include <w_lgamma_template.c>
|
||||
#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
|
6
math/w_lgammaf.c
Normal file
6
math/w_lgammaf.c
Normal file
@ -0,0 +1,6 @@
|
||||
#include <math-type-macros-float.h>
|
||||
#include <w_lgamma_template.c>
|
||||
#if __USE_WRAPPER_TEMPLATE
|
||||
strong_alias (__lgammaf, __gammaf)
|
||||
weak_alias (__gammaf, gammaf)
|
||||
#endif
|
6
math/w_lgammal.c
Normal file
6
math/w_lgammal.c
Normal file
@ -0,0 +1,6 @@
|
||||
#include <math-type-macros-ldouble.h>
|
||||
#include <w_lgamma_template.c>
|
||||
#if __USE_WRAPPER_TEMPLATE
|
||||
strong_alias (__lgammal, __gammal)
|
||||
weak_alias (__gammal, gammal)
|
||||
#endif
|
Loading…
Reference in New Issue
Block a user