package/postgresql: add cflags_sl option to pg_config
authorMaxim Kochetkov <fido_max@inbox.ru>
Tue, 22 Jun 2021 12:41:20 +0000 (15:41 +0300)
committerThomas Petazzoni <thomas.petazzoni@bootlin.com>
Sun, 25 Jul 2021 13:38:37 +0000 (15:38 +0200)
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>
package/postgresql/pg_config

index 3b0cb35f2c9255f2c83bd40a0bc563f701ddc05d..099f1ee390b44463a657bc25642c1fceae59f6ab 100644 (file)
@@ -31,6 +31,10 @@ case "$1" in
   --cflags)
        echo "@TARGET_CFLAGS@"
        ;;
+  --cflags_sl)
+       # defined at src/template/linux
+       echo "-fPIC"
+       ;;
   --cc)
        echo "@TARGET_CC@"
        ;;