HomeFreeBSD

devel/elfutils: Fix build with disabled NLS

Description

devel/elfutils: Fix build with disabled NLS

libintl.h is included unconditionally, but gettext include
path is not added to CFLAGS when gettext is disabled, so the
compilation fails:

cc ... -I. -I..  -I. -I. -I../lib -I.. -I./../libelf ... -I/usr/local/share/gnulib/lib ... -o xasprintf.o xasprintf.c
xasprintf.c:36:10: fatal error: 'libintl.h' file not found

So always add LOCALBASE/include to CFLAGS for libintl.h to be
available. Note that the order is important and it should appear
before gnulib includes, otherwise wrong argp.h gets included.

Approved by: portmgr blanket

Details

Provenance
AMDmi3Authored on Jan 25 2023, 4:09 PM
Parents
R11:be34db4a020e: devel/libgee: Update to 0.20.6
Branches
Unknown
Tags
Unknown