public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/syncthing] f43: Export CGO build flags
@ 2026-10-07 15:53 Maxwell G
0 siblings, 0 replies; only message in thread
From: Maxwell G @ 2026-10-07 15:53 UTC (permalink / raw)
To: git-commits
A new commit has been pushed.
Repo : rpms/syncthing
Branch : f43
Commit : 67496054405119c9a40121f5aae19be021b07130
Author : Maxwell G <maxwell@gtmx.me>
Date : 2026-02-08T09:16:25-06:00
Stats : +2/-0 in 1 file(s)
URL : https://src.fedoraproject.org/rpms/syncthing/c/67496054405119c9a40121f5aae19be021b07130?branch=f43
Log:
Export CGO build flags
We should probably set this by default in %gobuild, but that'd require
more testing...
[skip changelog]
---
diff --git a/syncthing.spec b/syncthing.spec
index 9d041da..5f14f9d 100644
--- a/syncthing.spec
+++ b/syncthing.spec
@@ -92,6 +92,7 @@ export COMMON_LDFLAGS="-X %{goipath}/lib/build.Version=v%{version} -X %{goipath}
# noupgrade: disable syncthing self-update functionality
# libsqlite3 / cgo: link system libsqlite3
export GO_BUILDTAGS="noupgrade libsqlite3 cgo"
+export CGO_CFLAGS="%{build_cflags}" CGO_LDFLAGS="%{build_ldflags}"
for cmd in cmd/syncthing cmd/stdiscosrv cmd/strelaysrv cmd/infra/strelaypoolsrv ; do
export GO_LDFLAGS="-X %{goipath}/lib/build.Program=$(basename $cmd) $COMMON_LDFLAGS"
@@ -158,6 +159,7 @@ desktop-file-validate %{buildroot}/%{_datadir}/applications/*.desktop
%if %{with check}
export LANG=C.utf8
export GO_BUILDTAGS="noupgrade libsqlite3 cgo"
+export CGO_CFLAGS="%{build_cflags}" CGO_LDFLAGS="%{build_ldflags}"
%gocheck2
%endif
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2026-10-07 15:53 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-10-07 15:53 [rpms/syncthing] f43: Export CGO build flags Maxwell G
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox