Skip to content

Commit

Permalink
always build with netgo to fix runtime error `undefined symbol: __res…
Browse files Browse the repository at this point in the history
…_search` when building on ubuntu20. Closes #450
  • Loading branch information
kaidaguerre committed Apr 19, 2024
1 parent 4da92c1 commit c4fd1b2
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions fdw/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit c4fd1b2

Please sign in to comment.