* [Buildroot] [git commit branch/2021.02.x] package/postgresql: add cflags_sl option to pg_config
@ 2021-08-05 10:47 Peter Korsgaard
0 siblings, 0 replies; only message in thread
From: Peter Korsgaard @ 2021-08-05 10:47 UTC (permalink / raw)
To: buildroot
commit: https://git.buildroot.net/buildroot/commit/?id=cd2f7d0ab26655de585fbb21fd8cef7f0cc72cf1
branch: https://git.buildroot.net/buildroot/commit/?id=refs/heads/2021.02.x
Some external packages call pg_config to determine the installed
PostgreSQL cflags_sl option. Add this output to Buildroots own
pg_config, so these packages correctly compile.
Default value is defined at src/template/linux as:
Extra CFLAGS for code that will go into a shared library
CFLAGS_SL="-fPIC"
Signed-off-by: Maxim Kochetkov <fido_max@inbox.ru>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
(cherry picked from commit ed4cfbb7730b0172f1e503a279e214810eec049f)
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
---
package/postgresql/pg_config | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/package/postgresql/pg_config b/package/postgresql/pg_config
index 3b0cb35f2c..099f1ee390 100644
--- a/package/postgresql/pg_config
+++ b/package/postgresql/pg_config
@@ -31,6 +31,10 @@ case "$1" in
--cflags)
echo "@TARGET_CFLAGS@"
;;
+ --cflags_sl)
+ # defined at src/template/linux
+ echo "-fPIC"
+ ;;
--cc)
echo "@TARGET_CC@"
;;
_______________________________________________
buildroot mailing list
buildroot@busybox.net
http://lists.busybox.net/mailman/listinfo/buildroot
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2021-08-05 11:08 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-08-05 10:47 [Buildroot] [git commit branch/2021.02.x] package/postgresql: add cflags_sl option to pg_config Peter Korsgaard
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).