This is the mail archive of the
java@gcc.gnu.org
mailing list for the Java project.
boehm-gc/win32_threads.c
- From: "Erik Poupaert" <erik dot poupaert at chello dot be>
- To: <java at gcc dot gnu dot org>
- Date: Mon, 17 Feb 2003 00:59:30 +0100
- Subject: boehm-gc/win32_threads.c
The problem comes from here:
gcc/boehm-gc/win32_threads.c:535:BOOL WINAPI DllMain(HINSTANCE inst, ULONG
reason, LPVOID reserved)
Between 3.2. and 3.3. the symbol DllMain has been added or enabled in
win32_threads.c. This precludes any other library from including DllMain.
Since ltdl apparently uses DllMain to initialize the jni library, I cannot
remove it from the jni library embedded in the executable.
Is there a reason why DllMain needs to be present in win32_threads.c ?
Another consequence. If I understand this right, only one jni library can be
statically linked at a time in the executable?