From c4fd1b2feebc1934dda3cf4e397f60ee35330afb Mon Sep 17 00:00:00 2001 From: kai Date: Fri, 19 Apr 2024 12:05:18 +0100 Subject: [PATCH] always build with netgo to fix runtime error `undefined symbol: __res_search` when building on ubuntu20. Closes #450 --- fdw/Makefile | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/fdw/Makefile b/fdw/Makefile index 865d4eba..fb9508bc 100644 --- a/fdw/Makefile +++ b/fdw/Makefile @@ -35,10 +35,8 @@ include $(PGXS) # Determine the operating system OS := $(shell uname) -# Check if the OS is Mac OS/Darwin -ifeq ($(OS),Darwin) - BUILD_TAGS = netgo -endif +# Always enable netgo for the build +BUILD_TAGS = netgo ifeq ($(shell uname -s),Darwin) export CGO_LDFLAGS = -Wl,-undefined,dynamic_lookup