Skip to content

Commit e83bda5

Browse files
committed
feat: add cross linker support
1 parent 3e19908 commit e83bda5

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

vuru/Makefile

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,10 @@ DEBUG_FLAGS = -debug -o:none
99
ifdef XBPS_TARGET_MACHINE
1010
ifeq ($(XBPS_TARGET_MACHINE),aarch64)
1111
ODIN_TARGET = -target:linux_arm64
12+
# Use the cross-linker provided by xbps-src
13+
ifdef LD
14+
ODIN_FLAGS += -extra-linker-flags="-fuse-ld=$(LD)"
15+
endif
1216
else ifeq ($(XBPS_TARGET_MACHINE),x86_64)
1317
ODIN_TARGET = -target:linux_amd64
1418
endif

0 commit comments

Comments
 (0)