[OpenWrt-Devel] MAKE_ARGS?

Yousong Zhou yszhou4tech at gmail.com
Wed Mar 2 06:08:08 EST 2016


On 2 March 2016 at 18:16, Mauro Mozzarelli <mauro at ezplanet.net> wrote:
>
> On Wed, March 2, 2016 09:27, Yousong Zhou wrote:
>> On 2 March 2016 at 17:15, Mauro Mozzarelli <mauro at ezplanet.net> wrote:
>>> Hi,
>>>
>>> I need to pass environment variables to a Makefile (ipvsadm-1.26). I tried using MAKE_ARGS
>>> as documented on the OpenWrt wiki but it is ignored.
>>>
>>
>> MAKE_VARS can be used.  See include/package-defaults.mk for details.
>
> That does not work either. I if I set for example HAVE_NL_3=1 it just gets ignored
> by an ifeq directive inside the Makefile (not the main Makefile, the one in libipvs).
> For this to work I need make to set HAVE_NL_3 as environment variable or to
> run
>
> make HAVE_NL_3=1
>

MAKE_FLAGS can should help in this case.  But if I remember correctly
only HAVE_NL is there, or are you patching to provide libnl3 support?

> So fare the only solution has been to define the variable in the #define directive which is in the code.
>
>
>>
>> p.s. you may also want to update that wiki page :)
>
> Gladly. How do I get access to update?

Just register an account should be fine.

                yousong

>
>>
>>                 yousong
>>
>>> Please could anyone let me know how to?
>>>
>>> Mauro
>>> _______________________________________________
>>> openwrt-devel mailing list
>>> openwrt-devel at lists.openwrt.org
>>> https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel
>>
>
>
> --
> Mauro Mozzarelli
> Phone: +44 7941 727378
> eMail: mauro at ezplanet.net
>
_______________________________________________
openwrt-devel mailing list
openwrt-devel at lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel


More information about the openwrt-devel mailing list