Skip to content

Commit b63fcfe

Browse files
committed
Try to fix ld problem on CI.
1 parent 4d93b68 commit b63fcfe

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

langs/outlaw/Makefile

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,10 @@ UNAME := $(shell uname)
88

99
ifeq ($(UNAME), Darwin)
1010
format=macho64
11+
libs='-lunistring'
1112
else
1213
format=elf64
14+
libs='-l:libunistring.a'
1315
endif
1416

1517
objs = \
@@ -25,7 +27,7 @@ objs = \
2527
default: runtime.o
2628

2729
runtime.o: $(objs)
28-
ld -r $(objs) -lunistring -o runtime.o
30+
ld -r $(objs) $(libs) -o runtime.o
2931

3032
%.run: %.o runtime.o
3133
gcc runtime.o $< -o $@

0 commit comments

Comments
 (0)