summaryrefslogtreecommitdiffstats
path: root/arch/sandbox/Makefile
diff options
context:
space:
mode:
authorSascha Hauer <s.hauer@pengutronix.de>2023-02-21 16:47:09 +0100
committerSascha Hauer <s.hauer@pengutronix.de>2023-02-22 07:13:57 +0100
commit551aefef47622510d99b7c998f79ebf2d78389ef (patch)
tree88cb637e4897b90379c13aabb9ad2490879bad6c /arch/sandbox/Makefile
parent7cbaa881c00e624eca9845b9dc92e69d0327b3e2 (diff)
downloadbarebox-551aefef47622510d99b7c998f79ebf2d78389ef.tar.gz
barebox-551aefef47622510d99b7c998f79ebf2d78389ef.tar.xz
Revert "sandbox: fix linker warnings with newer ld"
cc-option calls gcc with -c, so doesn't link internally. It is not suitable for testing linker flags. We use gcc for linking, so we need -Wl, for passing linker flags. ld-option doesn't work either, because it expects and outputs linker options directly without -Wl. There is no easy solution to this, so revert the patch for now. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'arch/sandbox/Makefile')
-rw-r--r--arch/sandbox/Makefile1
1 files changed, 0 insertions, 1 deletions
diff --git a/arch/sandbox/Makefile b/arch/sandbox/Makefile
index 0f59e79e13..d5ba05ba86 100644
--- a/arch/sandbox/Makefile
+++ b/arch/sandbox/Makefile
@@ -69,7 +69,6 @@ BAREBOX_LDFLAGS += \
-Wl,-T,$(BAREBOX_LDS) \
-Wl,--whole-archive $(BAREBOX_OBJS) -Wl,--no-whole-archive \
-lrt -pthread $(SDL_LIBS) $(FTDI1_LIBS) \
- -Wl,-z noexecstack $(call cc-option,-Wl$(comma)--no-warn-rwx-segments) \
$(SANITIZER_LIBS)
cmd_barebox__ = $(CC) -o $@ $(BAREBOX_LDFLAGS)