bug-gettext
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [bug-gettext] [PATCH] Determine Woe32 C symbol prefix at configure t


From: Daiki Ueno
Subject: Re: [bug-gettext] [PATCH] Determine Woe32 C symbol prefix at configure time.
Date: Fri, 28 Dec 2012 10:49:16 +0900
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux)

"B. Scott Michel" <address@hidden> writes:

> The better fix is to __not__ manually mangle the symbols with the
> "magic" IMP macro. Instead, the library should support symbol
> visibility, such as dllexport()/dllimport() for WinXX platforms and
> _attribute_ ((visibility("hidden"))) for Linux ELF. The "brain damage"
> for WinXX is that while building the library, dllexport() has to be in
> force, whereas during linking, dllimport() has to be in force. Similarly
> for Linux.

Actually, gettext does use dllexport/dllimport in the header files
through DLL_VARIABLE macro.  The use of IMP macro is to maintain the
export list (see the comments in gettext-tools/woe32dll/export.h).  Do
you mean it is possible to define the export list with a standard way?

> Q: Should I post the patch as an addendum to the existing Savannah bug
> report or post to the list?

If the patch is small, yes please.  Otherwise you can post some code
that demonstrates your idea, first :)

Thanks,
-- 
Daiki Ueno



reply via email to

[Prev in Thread] Current Thread [Next in Thread]