Skip to content

Commit 076f3ff

Browse files
authored
Always enable netgo for the build (#91)
1 parent 43020f2 commit 076f3ff

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

templates/.goreleaser.yml.tmpl

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ builds:
1111
- CGO_LDFLAGS=-Wl,--unresolved-symbols=ignore-in-object-files
1212
- CC=aarch64-linux-gnu-gcc
1313
flags:
14+
- -tags=netgo
1415
- -buildmode=c-shared
1516
- -o=steampipe_sqlite_{{.Plugin}}.so
1617
ldflags:
@@ -26,6 +27,7 @@ builds:
2627
- CGO_LDFLAGS=-Wl,--unresolved-symbols=ignore-in-object-files
2728
- CC=x86_64-linux-gnu-gcc
2829
flags:
30+
- -tags=netgo
2931
- -buildmode=c-shared
3032
- -o=steampipe_sqlite_{{.Plugin}}.so
3133
ldflags:

templates/out/Makefile.tmpl

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

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

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

0 commit comments

Comments
 (0)