<<< Date Index >>>     <<< Thread Index >>>

[Mutt] #3347: pgpewrap compilation depends on optimization turned on



#3347: pgpewrap compilation depends on optimization turned on
--------------------+-------------------------------------------------------
 Reporter:  marcel  |       Owner:  mutt-dev
     Type:  defect  |      Status:  new     
 Priority:  major   |   Milestone:          
Component:  mutt    |     Version:          
 Keywords:          |  
--------------------+-------------------------------------------------------
 The situation observed on (Open)Solaris when compiled mutt-1.5.20 with
 SunStudio cc with not enough optimization turned on:

 If the target platform does not have its own wcscasecmp() implementation
 the mutt's wcscasecmp.c is compiled as a replacement. The wcscasecmp.c
 indirectly includes ascii.h (via mutt.h). The ascii.h contains static
 inline ascii_strlower() implementation. The ascii_strlower() calls
 ascii_tolower().

 If there is no optimization used in a C compiler, the wcscasecmp.o
 compiled contains also ascii_strlower() implementation referring to the
 ascii_tolower symbol. The pgpewrap compilation/linking rules does not
 contain ascii.o (where the ascii_tolower symbol is implemented) to be
 linked into pgpewrap. This makes the pgpewrap compilation/linking failed
 missing the ascii_tolower symbol.

-- 
Ticket URL: <http://dev.mutt.org/trac/ticket/3347>
Mutt <http://www.mutt.org/>
The Mutt mail user agent