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