This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: nls patches - need help with make machinery


> > The only one that I am aware of is the "inline" keyword in couple of headers.
> > I enclose below the log of building libintl yesterday.  I had patched
> > gettextP.h to remove the inline keyword but not hash-string.h.  
> 
> Removing it is the wrong solution. Instead, the package including intl
> should use AC_C_INLINE in its configure.in. That will add
> 
> #define inline
> 
> to config.h if the compiler does not support the keyword. No changes
> to the source code should be required.

Yes, this is a much better solution and would in fact have not appeared if
-DIN_GCC was used in the CFLAGS used for building libintl.  However,
this raises the issue that configure should possibly be run again after
stage 1.

Dave
-- 
J. David Anglin                                  dave.anglin@nrc.ca
National Research Council of Canada              (613) 990-0752 (FAX: 952-6605)

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]