public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Maxwell G <maxwell@gtmx.me>
To: git-commits@fedoraproject.org
Subject: [rpms/syncthing] epel10.2: Export CGO build flags
Date: Sun, 05 Jul 2026 13:49:17 GMT	[thread overview]
Message-ID: <178325935705.1.4966155942807207206.rpms-syncthing-0b2a220e8a9f@fedoraproject.org> (raw)

            A new commit has been pushed.

            Repo   : rpms/syncthing
            Branch : epel10.2
            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.2

            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
 

                 reply	other threads:[~2026-07-05 13:49 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=178325935705.1.4966155942807207206.rpms-syncthing-0b2a220e8a9f@fedoraproject.org \
    --to=maxwell@gtmx.me \
    --cc=git-commits@fedoraproject.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox