If you try using Cflags from the generated pc file, presumably with something like:
cc $(pkg-config --cflags bash) -c o myload myload.c the compilation is likely to fail because HAVE_CONFIG_H is not defined. --- support/bash.pc.in | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/support/bash.pc.in b/support/bash.pc.in index 60096593..4de73120 100644 --- a/support/bash.pc.in +++ b/support/bash.pc.in @@ -8,9 +8,10 @@ libdir=@libdir@ loadablesdir=@loadablesdir@ headersdir=${includedir}/@PACKAGE_NAME@ +DEFS = @DEFS@ LOCAL_CFLAGS = @LOCAL_CFLAGS@ LOCAL_DEFS = @LOCAL_DEFS@ -CCFLAGS = ${LOCAL_DEFS} ${LOCAL_CFLAGS} +CCFLAGS = ${DEFS} ${LOCAL_DEFS} ${LOCAL_CFLAGS} CC = @CC@ SHOBJ_CC = @SHOBJ_CC@ -- 2.47.0