bug-bash
[Top][All Lists]
Advanced

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

Re: [PATCH] Makefile.in: add LIBINTL_H to install-headers


From: Chet Ramey
Subject: Re: [PATCH] Makefile.in: add LIBINTL_H to install-headers
Date: Wed, 13 Nov 2024 16:35:41 -0500
User-agent: Mozilla Thunderbird

On 11/13/24 4:25 PM, Grisha Levit wrote:
On Wed, Nov 13, 2024 at 3:45 PM Chet Ramey <chet.ramey@case.edu> wrote:

On 11/12/24 8:17 PM, Grisha Levit wrote:
I'm not sure if this is the most idiomatic way to write the rule, but
if a libintl.h is generated, it needs to make it into the installed
headers directory to allow loadables to build.

I assume you mean third-party loadables, right? None of the examples use
any of the gettext or locale functions in libintl.

The test I did was like the below (after applying the -DHAVE_CONFIG_H fix):

     mkdir -p /tmp/load-build
     cd ~/src/bash/examples/loadables
     for src in *.c; do
         clang $(pkg-config --cflags bash) \
             "$src" -c -o "/tmp/load-build/${src%.c}.o"
     done

OK, I see. There aren't any problems with building those in-tree because
the right include paths get put into the Makefile.

--
``The lyf so short, the craft so long to lerne.'' - Chaucer
                 ``Ars longa, vita brevis'' - Hippocrates
Chet Ramey, UTech, CWRU    chet@case.edu    http://tiswww.cwru.edu/~chet/



reply via email to

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