gm2
[Top][All Lists]
Advanced

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

Building with internal GCC libintl fails


From: Brian Callahan
Subject: Building with internal GCC libintl fails
Date: Mon, 19 Dec 2022 16:25:14 +0000

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

Attachment: m2.diff
Description: Binary data


reply via email to

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