This is the mail archive of the
java@gcc.gnu.org
mailing list for the Java project.
Naked DllMain in win32_threads.c (boehm-gc)
- From: Ranjit Mathew <rmathew at hotmail dot com>
- To: java at gcc dot gnu dot org
- Date: Wed, 20 Nov 2002 02:08:17 +0530
- Subject: Naked DllMain in win32_threads.c (boehm-gc)
Hi,
The win32_threads.c file in boehm-gc defines a naked
DllMain function that creates a multiple definition problem
while creating a DLL using "gcj -shared" on Windows. Newer
versions of MinGW provide a default DllMain function in
libmingw32.a.
IMHO, this DllMain should be protected with a #ifdef checking
GC_DLL or some such thing. I tried it out with GCJ 3.2 and
it actually seems to work. (The DLL creation bit, not the
actual DLL itself - that's another story.)
BTW, win32_threads.c seems to use a "_DLL" guard all over the
place but I couldn't find anyone who actually defines it - the
closest seems to be a definition of GC_DLL instead. What gives?
Sincerely Yours,
Ranjit.
--
Ranjit Mathew Email: rmathew AT hotmail DOT com
Bangalore,
INDIA. Web: http://ranjitmathew.tripod.com/