gm2
[Top][All Lists]
Advanced

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

Re: Building with internal GCC libintl fails


From: Gaius Mulley
Subject: Re: Building with internal GCC libintl fails
Date: Mon, 19 Dec 2022 18:25:12 +0000
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/27.1 (gnu/linux)

Brian Callahan <bcallah@protonmail.com> writes:

> Hi Gaius --
>
> If you build GM2 with the internal GCC intl library, then m2rte.so will fail 
> to build. This is because the Makefile will not search the internal intl 
> directory for libintl.h.
>
> It probably went unnoticed because I think most (all?) Linux-based
> systems have a /usr/include/libintl.h file and that get implicitly
> picked up. However, on other systems, such as OpenBSD, there is no
> /usr/include/libintl.h to be implicitly picked up and so the build
> fails.
>
> The attached diff fixes things on my OpenBSD machine by ensuring that
> the directory that contains the internal GCC libintl.h is part of the
> include directories when building m2rte.so. I don't know if that's
> GCC's preferred approach to the problem, so feel free to adapt as
> necessary.
>
> It was so nice to be able to compile M2 from mainline for the first time! I 
> will have a blog post up shortly about it.
>
> ~Brian

Hi Brian,

many thanks for the email and patch!  Great news it builds easily on
OpenBSD and thanks for the review on your blog.  OSX users also
experienced the libintl problem - and will also benefit from the patch,

regards,
Gaius



reply via email to

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