bug-bash
[Top][All Lists]
Advanced

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

[PATCH] bash.pc.in: use DEFS


From: Grisha Levit
Subject: [PATCH] bash.pc.in: use DEFS
Date: Tue, 12 Nov 2024 22:57:45 -0500

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




reply via email to

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