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: Brian Callahan
Subject: Re: Building with internal GCC libintl fails
Date: Mon, 19 Dec 2022 18:05:47 +0000

And the promised blog post is here:
https://briancallahan.net/blog/20221219.html

~Brian

------- Original Message -------
On Monday, December 19th, 2022 at 11:25, Brian Callahan 
<bcallah@protonmail.com> wrote:


> 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



reply via email to

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