summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRich Felker <dalias@aerifal.cx>2012-03-16 21:18:48 -0400
committerRich Felker <dalias@aerifal.cx>2012-03-16 21:18:48 -0400
commit1a3dce4184895be87b32dcb7c891c5cb87d88a95 (patch)
tree4b3c094a6bc213e13351d01ffc93c6e03f696853
parentde7db6e927e568c52eaffeb51d7726a094ed0180 (diff)
downloadmusl-1a3dce4184895be87b32dcb7c891c5cb87d88a95.tar.gz
musl-1a3dce4184895be87b32dcb7c891c5cb87d88a95.tar.bz2
musl-1a3dce4184895be87b32dcb7c891c5cb87d88a95.tar.xz
musl-1a3dce4184895be87b32dcb7c891c5cb87d88a95.zip
make signgam a weak alias for an internal symbol
otherwise, the standard C lgamma function will clobber a symbol in the namespace reserved for the application.
-rw-r--r--src/math/signgam.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/math/signgam.c b/src/math/signgam.c
index 12cc32d7..b39ceb04 100644
--- a/src/math/signgam.c
+++ b/src/math/signgam.c
@@ -1,2 +1,5 @@
-#include <math.h>
-int signgam = 0;
+#include "libm.h"
+
+int __signgam = 0;
+
+weak_alias(__signgam, signgam);