Skip to content

Commit 08539e9

Browse files
committed
[pacman] 7.0.0-8: add flags for golang in makepkg.conf
1 parent b175bdf commit 08539e9

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

PKGBUILD

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
pkgbase=pacman
66
pkgname=(libalpm pacman repo-tools)
77
pkgver=7.0.0
8-
pkgrel=7
8+
pkgrel=8
99
arch=(x86_64 aarch64 riscv64 loongarch64)
1010
url=https://www.archlinux.org/pacman/
1111
license=(GPL)
@@ -27,7 +27,7 @@ source=(
2727
sha256sums=('ef08f258cb3e0885c5884ad43fb6cff0e9c327ed33024d79d03555f99c583744'
2828
'553c3547b524f0169e7edfad508226037582c882b97f2660942513545dc7a8cf'
2929
'0865036ef04a06b00926640ac7db2275988b834f435101e8110eedf8a2e58b88'
30-
'a68b8c096ef27422278f68ed8511d80cf8fdb885bb53912a2f0694accc5249a5'
30+
'433de4a7108998434338ea199ee312e825e7d6215ee51aa0bf2cfbfe45540ca5'
3131
'738432ead6dae6c63a5cbd33e110f8a5e34f5143d125e183cf77dc3dbe87fe92'
3232
'9b1e4d7076137fb8ebb609068403024dc66d6d3c3b53b718401d4c79c8437d8f'
3333
'7d2ad28bef8f9f77f33929d2050244a6f29941de6ad0793b6820caee3dbd84e3'

makepkg.conf

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,12 @@ MAKEFLAGS="CC=cc CXX=c++ LIBTOOL=slibtool LIBTOOLIZE=slibtoolize -j$JOBS"
2121
RUSTFLAGS="-C target-feature=-crt-static"
2222
LTOFLAGS="-flto=auto"
2323

24+
# Go Flags are not exported by default, need to export explicitly
25+
export CGO_CFLAGS="${CFLAGS}"
26+
export CGO_CXXFLAGS="${CXXFLAGS}"
27+
export CGO_LDFLAGS="${LDFLAGS}"
28+
export GOFLAGS="-buildmode=pie -trimpath -ldflags=-linkmode=external -mod=readonly -modcacherw"
29+
2430
BUILDENV=(!distcc color !ccache check !sign)
2531

2632
OPTIONS=(strip docs !libtool !staticlibs emptydirs zipman purge !upx !debug @@BUILD_GEN_LTO@@ !autodeps)

0 commit comments

Comments
 (0)