|
From: | Mark Brand |
Subject: | Re: [Mingw-cross-env-list] OpenAL: applications and test programs crash |
Date: | Sat, 27 Nov 2010 20:16:33 +0100 |
User-agent: | Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.12) Gecko/20101026 SUSE/3.1.6 Thunderbird/3.1.6 |
I found the problem. OpenAL has initialization and deinitialization functions alc_init() and alc_deinit(), defined in Alc/ALc.c. On Windows, these are called via automatic execution of DllMain by default. In our case, we have to use the gcc constructor/destructor attributes instead, like non-Windows platforms do. The attached patch makes this change by augmenting the openal-1-fixes.patch file.
Committed. Thanks. http://hg.savannah.gnu.org/hgweb/mingw-cross-env/rev/df02f966cc6f Mark
[Prev in Thread] | Current Thread | [Next in Thread] |