]>
Commit | Line | Data |
---|---|---|
556b93bc JP |
1 | From f4cc905c69ca69c68cb95674cefce4abc37ce046 Mon Sep 17 00:00:00 2001 |
2 | From: wangqr <wangqr@wangqr.tk> | |
3 | Date: Mon, 17 Feb 2020 14:42:07 +0800 | |
4 | Subject: [PATCH] Use target name without directory in $*_OBJ macro | |
5 | ||
6 | Fix Aegisub/Aegisub#171 | |
7 | --- | |
8 | Makefile.target | 2 +- | |
9 | 1 file changed, 1 insertion(+), 1 deletion(-) | |
10 | ||
11 | diff --git a/Makefile.target b/Makefile.target | |
12 | index 516ef3c24..5c4c5d259 100644 | |
13 | --- a/Makefile.target | |
14 | +++ b/Makefile.target | |
15 | @@ -112,7 +112,7 @@ POST_FLAGS = $($@_FLAGS) -c -o $@ $< | |
16 | # Libraries contain all object files they depend on (but they may depend on other files) | |
17 | # Not using libtool on OS X because it has an unsilenceable warning about a | |
18 | # compatibility issue with BSD 4.3 (wtf) | |
19 | -lib%.a: $$($$*_OBJ) | |
20 | +lib%.a: $$($$(*F)_OBJ) | |
21 | @$(BIN_MKDIR_P) $(dir $@) | |
22 | $(BIN_AR) cru $@ $(filter %.o,$^) | |
23 | $(BIN_RANLIB) $@ |