diff options
| author | Khem Raj <raj.khem@gmail.com> | 2021-06-25 09:45:46 -0700 |
|---|---|---|
| committer | Khem Raj <raj.khem@gmail.com> | 2021-06-26 00:45:10 -0700 |
| commit | 4b5e0df08630526a5236a1c37b2886a1d139b439 (patch) | |
| tree | 1060642ddc0eb35b8a4e04600473e2de6bf4a6f1 | |
| parent | d49e96aac4616c439a2d778b95a793037dac884e (diff) | |
| download | meta-openembedded-4b5e0df08630526a5236a1c37b2886a1d139b439.tar.gz | |
libc-bench: Do not override ldflags in makefile
Signed-off-by: Khem Raj <raj.khem@gmail.com>
| -rw-r--r-- | meta-oe/recipes-benchmark/libc-bench/libc-bench/0001-build-Do-not-override-ldflags-from-environment.patch | 30 | ||||
| -rw-r--r-- | meta-oe/recipes-benchmark/libc-bench/libc-bench_git.bb | 1 |
2 files changed, 31 insertions, 0 deletions
diff --git a/meta-oe/recipes-benchmark/libc-bench/libc-bench/0001-build-Do-not-override-ldflags-from-environment.patch b/meta-oe/recipes-benchmark/libc-bench/libc-bench/0001-build-Do-not-override-ldflags-from-environment.patch new file mode 100644 index 0000000000..060b418fcd --- /dev/null +++ b/meta-oe/recipes-benchmark/libc-bench/libc-bench/0001-build-Do-not-override-ldflags-from-environment.patch | |||
| @@ -0,0 +1,30 @@ | |||
| 1 | From 419dac71dd524a39ad2333e91334b4650e277a78 Mon Sep 17 00:00:00 2001 | ||
| 2 | From: Khem Raj <raj.khem@gmail.com> | ||
| 3 | Date: Fri, 25 Jun 2021 09:43:00 -0700 | ||
| 4 | Subject: [PATCH] build: Do not override ldflags from environment | ||
| 5 | |||
| 6 | bitbake passed LDFLAGS contain important information e.g. which compiler | ||
| 7 | runtime to link etc. Therefore append -static to LDFLAGS instead | ||
| 8 | |||
| 9 | Upstream-Status: Pending | ||
| 10 | Signed-off-by: Khem Raj <raj.khem@gmail.com> | ||
| 11 | --- | ||
| 12 | Makefile | 2 +- | ||
| 13 | 1 file changed, 1 insertion(+), 1 deletion(-) | ||
| 14 | |||
| 15 | diff --git a/Makefile b/Makefile | ||
| 16 | index efda5c0..a867876 100644 | ||
| 17 | --- a/Makefile | ||
| 18 | +++ b/Makefile | ||
| 19 | @@ -3,7 +3,7 @@ SRCS = $(sort $(wildcard *.c)) | ||
| 20 | OBJS = $(SRCS:.c=.o) | ||
| 21 | |||
| 22 | CFLAGS = -Os -D_XOPEN_SOURCE=700 | ||
| 23 | -LDFLAGS = -static | ||
| 24 | +LDFLAGS += -static | ||
| 25 | LIBS = -lpthread -lrt -lpthread | ||
| 26 | |||
| 27 | |||
| 28 | -- | ||
| 29 | 2.32.0 | ||
| 30 | |||
diff --git a/meta-oe/recipes-benchmark/libc-bench/libc-bench_git.bb b/meta-oe/recipes-benchmark/libc-bench/libc-bench_git.bb index e813894316..f16bd99d5d 100644 --- a/meta-oe/recipes-benchmark/libc-bench/libc-bench_git.bb +++ b/meta-oe/recipes-benchmark/libc-bench/libc-bench_git.bb | |||
| @@ -10,6 +10,7 @@ SRCREV = "b6b2ce5f9f87a09b14499cb00c600c601f022634" | |||
| 10 | PV = "20110206+git${SRCPV}" | 10 | PV = "20110206+git${SRCPV}" |
| 11 | 11 | ||
| 12 | SRC_URI = "git://git.musl-libc.org/libc-bench \ | 12 | SRC_URI = "git://git.musl-libc.org/libc-bench \ |
| 13 | file://0001-build-Do-not-override-ldflags-from-environment.patch \ | ||
| 13 | " | 14 | " |
| 14 | 15 | ||
| 15 | S = "${WORKDIR}/git" | 16 | S = "${WORKDIR}/git" |
