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.
This commit is contained in:
Rich Felker 2012-03-16 21:18:48 -04:00
parent de7db6e927
commit 1a3dce4184

View file

@ -1,2 +1,5 @@
#include <math.h>
int signgam = 0;
#include "libm.h"
int __signgam = 0;
weak_alias(__signgam, signgam);