From 956881d7085884d7f985333a3658548734964250 Mon Sep 17 00:00:00 2001
From: barracuda156 <vital.had@gmail.com>
Date: Sat, 23 Dec 2023 05:18:34 +0800
Subject: [PATCH] pgsql: respect compiler choice

---
 pgsql/Makefile.in | 4 ++++
 1 file changed, 4 insertions(+)

diff --git pgsql/Makefile.in pgsql/Makefile.in
index 26afbcc..f22403e 100644
--- pgsql/Makefile.in
+++ pgsql/Makefile.in
@@ -57,6 +57,10 @@ SHLIB_LINK += ../lib/$(LIB_A) ../lib/$(LIB_A_LAZPERF) -lstdc++ $(filter -lm, $(L
 # We are going to use PGXS for sure
 include $(PGXS)
 
+# Should be here to have an effect
+CC = @CC@
+CXX = @CXX@
+
 $(EXTENSION).control: $(EXTENSION).control.in Makefile
 	$(SED) -e 's/#POINTCLOUD_VERSION#/$(EXTVERSION)/' \
          -e 's/#POINTCLOUD_VERSION_MAJOR#/$(EXTVERSION_MAJOR)/' $< > $@
