Skip to content
This repository was archived by the owner on Feb 17, 2022. It is now read-only.

Commit d66106c

Browse files
author
Per Johansson
authored
Merge pull request #48 from schibsted/go1.16
Fixes to run with go 1.16.
2 parents d938f4a + ff88794 commit d66106c

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

internal/cmd/gobuild/archive.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,9 @@ func buildCArchive(mode string, ldflags []string) {
2121

2222
if mode == "piclib" {
2323
// -a to build standard libs with -shared
24-
executeWithLdFlagsAndPkg(ldflags, "go", "build", "-i", "-pkgdir", abspkgdir+"/gopkg_piclib", "-installsuffix=piclib", "-buildmode=c-archive", "-gcflags=-shared", "-asmflags=-shared", "-a", "-o", absout)
24+
executeWithLdFlagsAndPkg(ldflags, "go", "build", "-pkgdir", abspkgdir+"/gopkg_piclib", "-installsuffix=piclib", "-buildmode=c-archive", "-gcflags=-shared", "-asmflags=-shared", "-a", "-o", absout)
2525
} else {
26-
executeWithLdFlagsAndPkg(ldflags, "go", "build", "-i", "-pkgdir", abspkgdir+"/gopkg_lib", "-installsuffix=lib", "-buildmode=c-archive", "-o", absout)
26+
executeWithLdFlagsAndPkg(ldflags, "go", "build", "-pkgdir", abspkgdir+"/gopkg_lib", "-installsuffix=lib", "-buildmode=c-archive", "-o", absout)
2727
}
2828

2929
// If there weren't any exports the header won't be created, but we expect it to be there.

test/compile.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
# Copyright 2018 Schibsted
33

44
set -xe
5-
test -z "$BUILDPATH" && BUILDPATH=build
5+
export BUILDPATH=build
66

77
CC="cc -std=gnu11" seb -condition cfoo -condition cbar
88
touch Builddesc # to make ninja invoke seb.
@@ -17,7 +17,7 @@ grep -q bar $BUILDPATH/obj/regress/lib/test
1717
grep -q fooval $BUILDPATH/regress/regress/infile/infile
1818

1919
# Check regress flavor for darwin 386 build
20-
grep -q rt0_386_darwin $BUILDPATH/regress/bin/goarch
20+
grep -q rt0_386_openbsd $BUILDPATH/regress/bin/goarch
2121
# Check prod flavor is executable.
2222
$BUILDPATH/prod/bin/goarch
2323

test/goarch/Builddesc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
GOPROG(goarch
22
goarch:regress[386]
3-
goos:regress[darwin]
3+
goos:regress[openbsd]
44
)
55

66
GOTEST(goarch

0 commit comments

Comments
 (0)