On 11/13/24 4:25 PM, Grisha Levit wrote:
On Wed, Nov 13, 2024 at 3:45 PM Chet Ramey <chet.ra...@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    c...@case.edu    http://tiswww.cwru.edu/~chet/

Reply via email to