public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/syncthing] epel10: Export CGO build flags
@ 2026-07-05 13:43 Maxwell G
0 siblings, 0 replies; only message in thread
From: Maxwell G @ 2026-07-05 13:43 UTC (permalink / raw)
To: git-commits
A new commit has been pushed.
Repo : rpms/syncthing
Branch : epel10
Commit : 0b2a220e8a9f72c4a920fd9281b21095435a6128
Author : Maxwell G <maxwell@gtmx.me>
Date : 2026-07-05T15:36:27+02:00
Stats : +2/-0 in 1 file(s)
URL : https://src.fedoraproject.org/rpms/syncthing/c/0b2a220e8a9f72c4a920fd9281b21095435a6128?branch=epel10
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-07-05 13:43 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-07-05 13:43 [rpms/syncthing] epel10: 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