File: fix-buildmode.patch

package info (click to toggle)
singularity-container 4.1.5%2Bds4-1
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 43,876 kB
  • sloc: asm: 14,840; sh: 3,190; ansic: 1,751; awk: 414; makefile: 413; python: 99
file content (14 lines) | stat: -rw-r--r-- 532 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
Description: buildmode=pie is not available on mips, hence fixing it
Author: Nilesh Patra <nilesh@debian.org>
Last-Update: 2022-02-24
--- a/mlocal/frags/go_common_opts.mk
+++ b/mlocal/frags/go_common_opts.mk
@@ -8,7 +8,7 @@
 # Need to disable race detector on ppc64le
 # https://github.com/hpcng/singularity/issues/5914
 uname_m := $(shell uname -m)
-ifeq ($(uname_m),$(filter $(uname_m),ppc64le i386 i686))
+ifeq ($(uname_m),$(filter $(uname_m),mips mips64 ppc64le i386 i686))
 GO_BUILDMODE := -buildmode=default
 GO_RACE :=
 else