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:
Szabolcs Nagy 2017-10-02 13:01:02 +01:00
parent bd4430c2a6
commit bdc5c59214
4 changed files with 28 additions and 0 deletions

View File

@ -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
View 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
View 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
View 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