From: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
To: buildroot@busybox.net
Subject: [Buildroot] [PATCH next v2] package/luarocks: rework configuration file for per-package folders
Date: Wed, 21 Nov 2018 08:46:39 +0100 [thread overview]
Message-ID: <20181121084639.7ad59570@windsurf> (raw)
In-Reply-To: <9e4b3242-76ad-2e6e-ba3d-5dabde0ffd91@mind.be>
Hello,
On Tue, 20 Nov 2018 23:11:28 +0100, Arnout Vandecappelle wrote:
> On 20/11/2018 14:01, Thomas Petazzoni wrote:
> > +LUAROCKS_RUN_ENV = \
> > + LUA_PATH="$(HOST_DIR)/share/lua/$(LUAINTERPRETER_ABIVER)/?.lua" \
> > + STAGING_DIR="$(STAGING_DIR)" \
> > + TARGET_DIR="$(TARGET_DIR)" \
>
> These two are already exported in top-level Makefile, so it shouldn't be needed
> (note that when a variable is exported, it will get its value from the context
> where the shell is started, not from where the 'export' statement is put, so it
> does exactly what we need it to).
ACK.
> > + TARGET_CC="$(TARGET_CC)" \
> > + TARGET_CFLAGS="$(LUAROCKS_CFLAGS)" \
> > + TARGET_LDFLAGS="$(TARGET_LDFLAGS)"
>
> For these three, I expect other package infras will need it as well, so it
> would make sense to export them too.
Generally speaking, I am not a big fan of things exported in the
environment. One thing I very often do when debugging build issues is
copy/paste the command line that Buildroot ran, to run it again on my
own, sometimes doing additional tweaks. When there's more and more
stuff "hidden" (i.e exported in the environment), it makes that more
and more difficult.
In addition, as you can see here, the TARGET_CFLAGS we use are *NOT*
the global TARGET_CFLAGS that Buildroot defines. It's LUAROCKS_CFLAGS,
which is TARGET_CFLAGS + a few additional luarocks specific CFLAGS.
So no, exporting TARGET_CFLAGS globally doesn't solve that particularly
case.
Best regards,
Thomas
--
Thomas Petazzoni, CTO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com
prev parent reply other threads:[~2018-11-21 7:46 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-11-20 13:01 [Buildroot] [PATCH next v2] package/luarocks: rework configuration file for per-package folders Thomas Petazzoni
2018-11-20 22:11 ` Arnout Vandecappelle
2018-11-21 7:46 ` Thomas Petazzoni [this message]
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=20181121084639.7ad59570@windsurf \
--to=thomas.petazzoni@bootlin.com \
--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