From: Arnout Vandecappelle <arnout@mind.be>
To: buildroot@busybox.net
Subject: [Buildroot] [PATCH] aircrack-ng: new package
Date: Tue, 12 Feb 2013 18:01:44 +0100 [thread overview]
Message-ID: <511A7578.6010501@mind.be> (raw)
In-Reply-To: <CAA1eMkHU92kZyhp_ChMFfPDRLViGNmmM-M+NbXWBNFs1ghh7nA@mail.gmail.com>
On 10/02/13 16:08, Laurent CANS wrote:
> Arnout, Thomas,
>
> I tried to use $(TARGET_CONFIGURE_OPTS) passed by variable or by
> environment but the 2 methods fails.
>
> What is the correct methode to handle this?
> - Correct package makefiles
> - Don't use $(TARGET_CONFIGURE_OPTS) but CC and LD fixed by variable
> - Another solution
>
> Best regards,
>
> Laurent
Laurent,
First of all, please don't top-post, but cut down the quoted message to
the relevant parts and reply under them, like below.
>
> 2013/2/8 Arnout Vandecappelle <arnout@mind.be>:
>> On 08/02/13 16:32, Thomas Petazzoni wrote:
>>> On Fri, 8 Feb 2013 17:16:29 +0100, Laurent Cans wrote:
[snip]
>>>> +
>>>> +define AIRCRACK_NG_BUILD_CMDS
>>>> + $(MAKE) CC="$(TARGET_CC)" LD="$(TARGET_LD)" -C $(@D)
>>>> $(AIRCRACK_NG_OPTS) all
>>>> +endef
>>>
>>>
>>> Use $(TARGET_CONFIGURE_OPTS) :
>>>
>>> $(MAKE) $(TARGET_CONFIGURE_OPTS) -C $(@D) $(AIRCRACK_NG_OPTS) all
>>
>>
>> If it works, I prefer to put the TARGET_CONFIGURE_OPTS in the environment
>> instead:
>>
>> $(TARGET_CONFIGURE_OPTS) $(MAKE) -C $(@D) $(AIRCRACK_NG_MAKE_OPTS) all
>>
>> That gives the Makefile the possibility to append to CFLAGS and LDFLAGS, if
>> necessary. However, some Makefiles unconditionally set CFLAGS or LDFLAGS (or
>> even CC), in that case passing through the environment doesn't work.
If setting $(TARGET_CONFIGURE_OPTS) in the environment doesn't work,
then you can try setting it on the command line instead. If that doesn't
work either, it indicates that something funny is done in the Makefile
and it's important to find out what exactly. Probably it's a matter of
CFLAGS or LDFLAGS that need to be set, but are now overridden from the
command line.
In that case, the best option is to fix the Makefile (and upstream the
fix). A less preferred option is something like:
$(TARGET_CONFIGURE_OPTS) $(MAKE) -C $(@D) \
CC="$(TARGET_CC)" LD="$(TARGET_LD)" $(AIRCRACK_NG_MAKE_OPTS) all
i.e. use the command line to force CC and LD and pass the things that the
Makefile needs to have control over (CFLAGS and LDFLAGS) through the
environment.
Regards,
Arnout
--
Arnout Vandecappelle arnout at mind be
Senior Embedded Software Architect +32-16-286500
Essensium/Mind http://www.mind.be
G.Geenslaan 9, 3001 Leuven, Belgium BE 872 984 063 RPR Leuven
LinkedIn profile: http://www.linkedin.com/in/arnoutvandecappelle
GPG fingerprint: 7CB5 E4CC 6C2E EFD4 6E3D A754 F963 ECAB 2450 2F1F
next prev parent reply other threads:[~2013-02-12 17:01 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-02-08 16:16 [Buildroot] [PATCH] aircrack-ng: new package Laurent Cans
2013-02-08 15:30 ` Gustavo Zacarias
2013-02-08 18:53 ` Laurent CANS
2013-02-08 15:32 ` Thomas Petazzoni
2013-02-08 15:37 ` Stephan Hoffmann
2013-02-08 20:26 ` Arnout Vandecappelle
2013-02-10 15:08 ` Laurent CANS
2013-02-12 17:01 ` Arnout Vandecappelle [this message]
2013-02-08 16:20 ` Stefan Fröberg
2013-02-08 22:38 ` Laurent CANS
2013-02-09 11:36 ` Stefan Fröberg
2013-02-09 11:45 ` Stefan Fröberg
2013-02-09 12:01 ` Thomas Petazzoni
2013-02-09 12:18 ` Stefan Fröberg
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=511A7578.6010501@mind.be \
--to=arnout@mind.be \
--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