File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11# Makefile for vuru (Odin version)
22
33ODIN = odin
4- ODIN_FLAGS = -o:speed -reloc-mode:pic -extra-linker-flags="-pie"
4+ ODIN_FLAGS = -o:speed -reloc-mode:pic
55DEBUG_FLAGS = -debug -o:none
66
7+ # Linker flags (combined into single -extra-linker-flags for Odin)
8+ LINKER_FLAGS = -pie
9+
710# Cross-compilation support for xbps-src
811# XBPS_TARGET_MACHINE is set by xbps-src when cross-compiling
912ifdef XBPS_TARGET_MACHINE
1013 ifeq ($(XBPS_TARGET_MACHINE),aarch64)
1114 ODIN_TARGET = -target:linux_arm64
1215 # Use the cross-linker provided by xbps-src
1316 ifdef LD
14- ODIN_FLAGS += -extra-linker-flags="- fuse-ld=$(LD ) "
17+ LINKER_FLAGS += -fuse-ld=$(LD )
1518 endif
1619 else ifeq ($(XBPS_TARGET_MACHINE),x86_64)
1720 ODIN_TARGET = -target:linux_amd64
1821 endif
1922endif
2023
24+ ODIN_FLAGS += -extra-linker-flags="$(LINKER_FLAGS ) "
25+
2126PREFIX ?= /usr/local
2227DESTDIR ?=
2328
You can’t perform that action at this time.
0 commit comments