mirror of
https://git.yoctoproject.org/poky
synced 2026-05-30 12:29:55 +00:00
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>
This commit is contained in:
committed by
Richard Purdie
parent
22125f0ace
commit
3213bda073
@@ -81,20 +81,12 @@ do_configure() {
|
|||||||
|
|
||||||
do_compile() {
|
do_compile() {
|
||||||
# net-tools use COPTS/LOPTS to allow adding custom options
|
# net-tools use COPTS/LOPTS to allow adding custom options
|
||||||
export COPTS="$CFLAGS"
|
oe_runmake COPTS="$CFLAGS" LOPTS="$LDFLAGS"
|
||||||
export LOPTS="$LDFLAGS"
|
|
||||||
unset CFLAGS
|
|
||||||
unset LDFLAGS
|
|
||||||
|
|
||||||
oe_runmake
|
|
||||||
}
|
}
|
||||||
|
|
||||||
do_install() {
|
do_install() {
|
||||||
export COPTS="$CFLAGS"
|
# We don't need COPTS or LOPTS, but let's be consistent.
|
||||||
export LOPTS="$LDFLAGS"
|
oe_runmake COPTS="$CFLAGS" LOPTS="$LDFLAGS" 'BASEDIR=${D}' install
|
||||||
unset CFLAGS
|
|
||||||
unset LDFLAGS
|
|
||||||
oe_runmake 'BASEDIR=${D}' install
|
|
||||||
|
|
||||||
if [ "${base_bindir}" != "/bin" ]; then
|
if [ "${base_bindir}" != "/bin" ]; then
|
||||||
mkdir -p ${D}/${base_bindir}
|
mkdir -p ${D}/${base_bindir}
|
||||||
|
|||||||
Reference in New Issue
Block a user