Skip to content

Commit 43020f2

Browse files
authored
Revert "Always enable netgo for the build (#89)" (#90)
This reverts commit bc7865f.
1 parent bc7865f commit 43020f2

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

templates/.goreleaser.yml.tmpl

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@ builds:
1111
- CGO_LDFLAGS=-Wl,--unresolved-symbols=ignore-in-object-files
1212
- CC=aarch64-linux-gnu-gcc
1313
flags:
14-
- -tags=netgo
1514
- -buildmode=c-shared
1615
- -o=steampipe_sqlite_{{.Plugin}}.so
1716
ldflags:
@@ -27,7 +26,6 @@ builds:
2726
- CGO_LDFLAGS=-Wl,--unresolved-symbols=ignore-in-object-files
2827
- CC=x86_64-linux-gnu-gcc
2928
flags:
30-
- -tags=netgo
3129
- -buildmode=c-shared
3230
- -o=steampipe_sqlite_{{.Plugin}}.so
3331
ldflags:

templates/out/Makefile.tmpl

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,10 @@ export CGO_LDFLAGS = -Wl,--unresolved-symbols=ignore-in-object-files
22
# Determine the operating system
33
OS := $(shell uname)
44

5-
# Always enable netgo for the build
6-
BUILD_TAGS = netgo
5+
# Check if the OS is Mac OS/Darwin
6+
ifeq ($(OS),Darwin)
7+
BUILD_TAGS = netgo
8+
endif
79

810
ifeq ($(shell uname -s),Darwin)
911
export CGO_LDFLAGS = -Wl,-undefined,dynamic_lookup

0 commit comments

Comments
 (0)