diff options
author | He Zhe <zhe.he@windriver.com> | 2021-01-06 13:33:17 +0800 |
---|---|---|
committer | Khem Raj <raj.khem@gmail.com> | 2021-01-05 23:12:54 -0800 |
commit | a6a8fc75bad04be0842e22fb137d0e7a2dcb7279 (patch) | |
tree | e001bbbac130db134ee0affd89d76ec75afb1c29 /meta-oe/recipes-benchmark | |
parent | 583fbb4775a960391cb62d55164b91570a70921a (diff) | |
download | meta-openembedded-a6a8fc75bad04be0842e22fb137d0e7a2dcb7279.tar.gz |
lmbench: Fix setting LDLIBS failure
scripts/build is interpreted as an sh script which may not recognize variable
assignment operator += and thus give the following error and fail to append
LDLIBS.
../scripts/build: 21: ../scripts/build: LDLIBS+=-lm: not found
Use the basic assignment instead.
Signed-off-by: He Zhe <zhe.he@windriver.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Diffstat (limited to 'meta-oe/recipes-benchmark')
-rw-r--r-- | meta-oe/recipes-benchmark/lmbench/lmbench-3.0-a9/0002-build-Adjust-CFLAGS-LDFLAGS-to-append-values-passed-.patch | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/meta-oe/recipes-benchmark/lmbench/lmbench-3.0-a9/0002-build-Adjust-CFLAGS-LDFLAGS-to-append-values-passed-.patch b/meta-oe/recipes-benchmark/lmbench/lmbench-3.0-a9/0002-build-Adjust-CFLAGS-LDFLAGS-to-append-values-passed-.patch index 353d80b3b..1d5d9c12a 100644 --- a/meta-oe/recipes-benchmark/lmbench/lmbench-3.0-a9/0002-build-Adjust-CFLAGS-LDFLAGS-to-append-values-passed-.patch +++ b/meta-oe/recipes-benchmark/lmbench/lmbench-3.0-a9/0002-build-Adjust-CFLAGS-LDFLAGS-to-append-values-passed-.patch | |||
@@ -22,7 +22,7 @@ index 34a1371..3786741 100755 | |||
22 | trap 'rm -f ${BASE}$$.s ${BASE}$$.c ${BASE}$$.o ${BASE}$$; exit 1' 1 2 15 | 22 | trap 'rm -f ${BASE}$$.s ${BASE}$$.c ${BASE}$$.o ${BASE}$$; exit 1' 1 2 15 |
23 | 23 | ||
24 | -LDLIBS=-lm | 24 | -LDLIBS=-lm |
25 | +LDLIBS+=-lm | 25 | +LDLIBS="$LDLIBS -lm" |
26 | 26 | ||
27 | # check for HP-UX's ANSI compiler | 27 | # check for HP-UX's ANSI compiler |
28 | echo "main(int ac, char *av[]) { int i; }" > ${BASE}$$.c | 28 | echo "main(int ac, char *av[]) { int i; }" > ${BASE}$$.c |