Browse Source

Default to modern -ldflags syntax for unknown Go version

Jakob Borg 9 years ago
parent
commit
b8c72ade4c
1 changed files with 3 additions and 3 deletions
  1. 3 3
      build.go

+ 3 - 3
build.go

@@ -438,9 +438,9 @@ func clean() {
 }
 
 func ldflags() string {
-	sep := ' '
-	if goVersion > 1.4 {
-		sep = '='
+	sep := '='
+	if goVersion > 0 && goVersion < 1.5 {
+		sep = ' '
 	}
 
 	b := new(bytes.Buffer)