Fixed #654. Make sure the gotoblas_init function is run before all other static initializations.

This commit is contained in:
Zhang Xianyi 2015-10-05 14:14:32 -05:00
parent c666158b79
commit 11ac4665c8
1 changed files with 2 additions and 2 deletions

View File

@ -139,8 +139,8 @@ USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
#define BITMASK(a, b, c) ((((a) >> (b)) & (c)))
#define CONSTRUCTOR __attribute__ ((constructor))
#define DESTRUCTOR __attribute__ ((destructor))
#define CONSTRUCTOR __attribute__ ((constructor(101)))
#define DESTRUCTOR __attribute__ ((destructor(101)))
#ifdef DYNAMIC_ARCH
gotoblas_t *gotoblas = NULL;