Hi all
 
I don't understand how PGXS work under CentOS 7.
For example: the small and correct Makefile
 
...........................................................
MODULE_big = pg_hashids
OBJS = pg_hashids.o hashids.o
 
EXTENSION = pg_hashids
DATA = pg_hashids--1.3.sql \
pg_hashids--1.2.1--1.3.sql \
pg_hashids--1.2--1.3.sql \
pg_hashids--1.1--1.2.sql \
pg_hashids--1.0--1.1.sql
 
PG_CONFIG = pg_config
PGXS := $(shell $(PG_CONFIG) --pgxs)
include $(PGXS)
................................................................
 
I try to build it.
 
PG>make PG_CONFIG=/usr/pgsql-12/bin/pg_config
. . . . . .
$>make PG_CONFIG=/usr/pgsql-12/bin/pg_config
/opt/rh/llvm-toolset-7/root/usr/bin/clang -Wno-ignored-attributes -fno-strict-aliasing -fwrapv -O2 -I. -I./ -I/usr/pgsql-12/include/server -I/usr/pgsql-12/include/internal -D_GNU_SOURCE -I/usr/include/libxml2 -I/usr/include -flto=thin -emit-llvm -c -o pg_hashids.bc pg_hashids.c
clang: error: unknown argument: '-flto=thin'
 
The error
 
On Ubuntu 18.4 all are going well.
 
-- 
Nick Chadaev
 
      +7(916)175-3061
      +7(958)820-7975