From: Maxim Kochetkov <fido_max@inbox.ru>
To: buildroot@busybox.net
Subject: [Buildroot] [PATCH 1/2] package/postgresql: add cflags_sl option to pg_config
Date: Tue, 22 Jun 2021 15:41:20 +0300 [thread overview]
Message-ID: <20210622124121.999281-2-fido_max@inbox.ru> (raw)
In-Reply-To: <20210622124121.999281-1-fido_max@inbox.ru>
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>
---
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@"
;;
--
2.31.1
next prev parent reply other threads:[~2021-06-22 12:41 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-06-22 12:41 [Buildroot] [PATCH 0/2] package/timescaledb: Bump version to 2.3.0 Maxim Kochetkov
2021-06-22 12:41 ` Maxim Kochetkov [this message]
2021-07-25 13:41 ` [Buildroot] [PATCH 1/2] package/postgresql: add cflags_sl option to pg_config Thomas Petazzoni
2021-08-05 10:50 ` Peter Korsgaard
2021-06-22 12:41 ` [Buildroot] [PATCH 2/2] package/timescaledb: Bump version to 2.3.0 Maxim Kochetkov
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20210622124121.999281-2-fido_max@inbox.ru \
--to=fido_max@inbox.ru \
--cc=buildroot@busybox.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).