浏览代码

package/postgresql: add cflags_sl option to pg_config

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>
Maxim Kochetkov 4 年之前
父节点
当前提交
cd2f7d0ab2
共有 1 个文件被更改,包括 4 次插入0 次删除
  1. 4 0
      package/postgresql/pg_config

+ 4 - 0
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@"
 	;;