diff options
author | Joe Slater <jslater@windriver.com> | 2017-11-14 13:53:28 -0800 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2017-11-21 13:06:13 +0000 |
commit | 3213bda073ea858cbc4e09b2ee9bb6662140837a (patch) | |
tree | 76d8769129d9f170edd0aef04af4b5d09ca626da /meta/recipes-extended | |
parent | 22125f0ace2c355f7118de4ae797338f5863ce7f (diff) | |
download | poky-3213bda073ea858cbc4e09b2ee9bb6662140837a.tar.gz |
net-tools: correctly set COPTS and LOPTS
COPTS will be ignored if it is defined in the environment.
It must be passed directly to make. To be consistent, we
pass LOPTS that way, too.
(From OE-Core rev: dede6d3d37aab72ae897c3709d21108fa75f6673)
Signed-off-by: Joe Slater <jslater@windriver.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-extended')
-rw-r--r-- | meta/recipes-extended/net-tools/net-tools_1.60-26.bb | 14 |
1 files changed, 3 insertions, 11 deletions
diff --git a/meta/recipes-extended/net-tools/net-tools_1.60-26.bb b/meta/recipes-extended/net-tools/net-tools_1.60-26.bb index c23d53376a..69c9af317d 100644 --- a/meta/recipes-extended/net-tools/net-tools_1.60-26.bb +++ b/meta/recipes-extended/net-tools/net-tools_1.60-26.bb | |||
@@ -81,20 +81,12 @@ do_configure() { | |||
81 | 81 | ||
82 | do_compile() { | 82 | do_compile() { |
83 | # net-tools use COPTS/LOPTS to allow adding custom options | 83 | # net-tools use COPTS/LOPTS to allow adding custom options |
84 | export COPTS="$CFLAGS" | 84 | oe_runmake COPTS="$CFLAGS" LOPTS="$LDFLAGS" |
85 | export LOPTS="$LDFLAGS" | ||
86 | unset CFLAGS | ||
87 | unset LDFLAGS | ||
88 | |||
89 | oe_runmake | ||
90 | } | 85 | } |
91 | 86 | ||
92 | do_install() { | 87 | do_install() { |
93 | export COPTS="$CFLAGS" | 88 | # We don't need COPTS or LOPTS, but let's be consistent. |
94 | export LOPTS="$LDFLAGS" | 89 | oe_runmake COPTS="$CFLAGS" LOPTS="$LDFLAGS" 'BASEDIR=${D}' install |
95 | unset CFLAGS | ||
96 | unset LDFLAGS | ||
97 | oe_runmake 'BASEDIR=${D}' install | ||
98 | 90 | ||
99 | if [ "${base_bindir}" != "/bin" ]; then | 91 | if [ "${base_bindir}" != "/bin" ]; then |
100 | mkdir -p ${D}/${base_bindir} | 92 | mkdir -p ${D}/${base_bindir} |