apps/Application.mk: Fix path calculation. (#22)
The GNU make CURDIR will always be a POSIX-like path with forward slashes as path segment separators. If we know that this is a native build, then we need to fix up the path so the DELIM will match the actual delimiter.
This commit is contained in:
parent
367b4d7e5b
commit
8e21be5223
@ -51,7 +51,17 @@ ifneq ($(MAINSRC),)
|
||||
endif
|
||||
endif
|
||||
|
||||
SUFFIX = $(subst $(DELIM),.,$(CURDIR))
|
||||
# The GNU make CURDIR will always be a POSIX-like path with forward slashes
|
||||
# as path segment separators. If we know that this is a native build, then
|
||||
# we need to fix up the path so the DELIM will match the actual delimiter.
|
||||
|
||||
ifeq ($(CONFIG_WINDOWS_NATIVE),y)
|
||||
CWD = $(strip ${shell echo %CD% | cut -d: -f2})
|
||||
else
|
||||
CWD = $(CURDIR)
|
||||
endif
|
||||
|
||||
SUFFIX = $(subst $(DELIM),.,$(CWD))
|
||||
|
||||
# Object files
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user