<div><div>Hi all</div><div> </div><div>I don't understand how PGXS work under CentOS 7.</div><div>For example: the small and correct Makefile</div><div> </div><div>...........................................................</div><div>MODULE_big = pg_hashids</div><div>OBJS = pg_hashids.o hashids.o</div><div> </div><div>EXTENSION = pg_hashids</div><div>DATA = pg_hashids--1.3.sql \</div><div>pg_hashids--1.2.1--1.3.sql \</div><div>pg_hashids--1.2--1.3.sql \</div><div>pg_hashids--1.1--1.2.sql \</div><div>pg_hashids--1.0--1.1.sql</div><div> </div><div>PG_CONFIG = pg_config</div><div>PGXS := $(shell $(PG_CONFIG) --pgxs)</div><div>include $(PGXS)</div><div>................................................................</div><div> </div><div>I try to build it.</div><div> </div><div>PG>make PG_CONFIG=/usr/pgsql-12/bin/pg_config</div><div>. . . . . .</div><div>$>make PG_CONFIG=/usr/pgsql-12/bin/pg_config</div><div>/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</div><div>clang: error: unknown argument: '-flto=thin'</div><div> </div><div>The error</div><div> </div><div>On Ubuntu 18.4 all are going well.</div></div><div> </div><div>-- </div><div>Nick Chadaev<div> </div><div> +7(916)175-3061</div><div> +7(958)820-7975</div><div> </div><div> </div></div>