aboutsummaryrefslogtreecommitdiff
path: root/arch/riscv/user/hwprobe/Makefile
diff options
context:
space:
mode:
authorMiquel Sabaté Solà <mikisabate@gmail.com>2025-04-22 16:18:50 +0200
committerMiquel Sabaté Solà <mikisabate@gmail.com>2025-04-22 16:18:50 +0200
commit74caba366d3fafd21910f3d95dbc2819267c52bc (patch)
tree01293b9a5ab212ae11bb25f728cf8aa4b12d6665 /arch/riscv/user/hwprobe/Makefile
parentb2f8b8c1918b4523ee45dfc3f13a609fa18c0696 (diff)
downloadfarga-74caba366d3fafd21910f3d95dbc2819267c52bc.tar.gz
farga-74caba366d3fafd21910f3d95dbc2819267c52bc.zip
riscv: user: Statically build everything
This way these binaries can be executed from virtually anywhere, like my minimalistic busybox setup I have for QEMU which doesn't even have the `ld-` files required to run a C program. Signed-off-by: Miquel Sabaté Solà <mikisabate@gmail.com>
Diffstat (limited to 'arch/riscv/user/hwprobe/Makefile')
-rw-r--r--arch/riscv/user/hwprobe/Makefile2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/riscv/user/hwprobe/Makefile b/arch/riscv/user/hwprobe/Makefile
index 9b813ff..6c47002 100644
--- a/arch/riscv/user/hwprobe/Makefile
+++ b/arch/riscv/user/hwprobe/Makefile
@@ -24,7 +24,7 @@ ISA ?= rv64imafdc_zicntr_zicsr_zifencei_zihpm_zca_zcd_zba_zbb
WARNINGS = -Werror -Wpedantic -Wall -Wextra -Wcast-align -Wcast-qual -Winit-self \
-Wmissing-include-dirs -Wredundant-decls -Wshadow -Wsign-conversion \
-Wswitch-default -Wundef -Wunreachable-code -Wmissing-noreturn
-CCFLAGS = $(WARNINGS) -march=$(ISA)
+CCFLAGS = $(WARNINGS) -march=$(ISA) -static
LDFLAGS =