From: Christian Stewart <christian@paral.in>
To: buildroot@busybox.net
Subject: [Buildroot] [PATCH 1/1] pkg-golang: Allow per package/target CGO_ENABLED setting
Date: Sun, 07 Apr 2019 19:00:20 -0700 [thread overview]
Message-ID: <87pnpxfe8b.fsf@paral.in> (raw)
In-Reply-To: <20190407214941.GA3117@jaya>
Hi Anisse, Cam, all,
Overriding CGO_ENABLED when we know that the toolchain doesn't work
properly with cgo doesn't seem correct.
Anisse Astier <anisse@astier.eu> writes:
>> Some build targets may not build with CGO_ENABLED=1, so allowing a per
>> package and build target override will allow those targets to be built
>> with Buildroot.
Why not just add the override in the existing build flag overrides?
> Just like Thomas, I'm wondering what specific use-case you have in mind;
> in particular, I'm interested why you needed build-target granularity in
> addition to package-level configuration.
If you really need to do something this custom, I recommend just
overriding the build stage entirely.
> Disabling CGO isn't an issue, until you try doing DNS requests, which
> are usually handled by your libc. If you have anything configured out of
> the ordinary /etc/resolv.conf, a cgo-disabled binary won't be able to do
> a DNS request. Same goes for user/group and user home dir resolution:
> anything outside of /etc/{passwd,group} (pam, NSS, etc.), won't work.
Are you referring to the case where a Go-implemented DNS is used? This
should be the case with cgo disabled, and I don't know if the behavior
differs from the regular libc dns.
> I don't know in which context it might be useful in buildroot.
I don't see a reason for it either.
Best,
Christian
next prev parent reply other threads:[~2019-04-08 2:00 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-07-27 2:47 [Buildroot] [PATCH 1/1] pkg-golang: Allow per package/target CGO_ENABLED setting Cam Hutchison
2019-04-07 20:28 ` Thomas Petazzoni
2019-04-12 21:45 ` Cam Hutchison
2019-04-07 21:49 ` Anisse Astier
2019-04-08 2:00 ` Christian Stewart [this message]
2019-04-08 7:04 ` Thomas Petazzoni
2019-04-08 11:25 ` Anisse Astier
2019-04-09 0:22 ` Cam Hutchison
2019-04-09 3:22 ` Christian Stewart
2019-04-12 21:29 ` Cam Hutchison
2019-04-12 21:48 ` Cam Hutchison
2019-04-09 6:05 ` Thomas Petazzoni
2019-04-08 11:23 ` Anisse Astier
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=87pnpxfe8b.fsf@paral.in \
--to=christian@paral.in \
--cc=buildroot@busybox.net \
/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