diff options
author | Szabolcs Nagy <szabolcs.nagy@arm.com> | 2017-10-02 13:01:02 +0100 |
---|---|---|
committer | Szabolcs Nagy <szabolcs.nagy@arm.com> | 2017-10-02 17:33:13 +0100 |
commit | bdc5c59214a9e4bd9a299deead29c04ddf141256 (patch) | |
tree | b523a6912c7543ec8df12710c19141de6862a858 /math | |
parent | bd4430c2a6d9d4deb49cab20ebe6aaf8a779ba0d (diff) | |
download | glibc-bdc5c59214a9e4bd9a299deead29c04ddf141256.tar glibc-bdc5c59214a9e4bd9a299deead29c04ddf141256.tar.gz glibc-bdc5c59214a9e4bd9a299deead29c04ddf141256.tar.bz2 glibc-bdc5c59214a9e4bd9a299deead29c04ddf141256.zip |
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.
Diffstat (limited to 'math')
-rw-r--r-- | math/w_lgamma.c | 10 | ||||
-rw-r--r-- | math/w_lgammaf.c | 6 | ||||
-rw-r--r-- | math/w_lgammal.c | 6 |
3 files changed, 22 insertions, 0 deletions
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 <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 diff --git a/math/w_lgammaf.c b/math/w_lgammaf.c new file mode 100644 index 0000000000..371fa26234 --- /dev/null +++ b/math/w_lgammaf.c @@ -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 diff --git a/math/w_lgammal.c b/math/w_lgammal.c new file mode 100644 index 0000000000..cf6cc9c1ca --- /dev/null +++ b/math/w_lgammal.c @@ -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 |