Fix Cygwin build broken by commit 34b34e2d45
Commit 34b34e2d45
uses the full path to libapps.a and introduced the use of the Make notdir command. That command breaks the Cygwin build because when a native Windows toolchain is used, the full path to libapps.a is a Windows-sytle path and the Make notdir command (like most other GNU Make commands) fails if it is passed a Windows-style path. This commit replaces the Make notdir command with the Bash basename command which can handle Windows paths.
This commit is contained in:
parent
560a052144
commit
5ffb1c6a0b
|
@ -317,7 +317,7 @@ endef
|
|||
# CONFIG_WINDOWS_NATIVE - Defined for a Windows native build
|
||||
|
||||
define ARCHIVE_ADD
|
||||
@echo "AR (add): $(notdir $1) $(2)"
|
||||
@echo "AR (add): ${shell basename $(1)} $(2)"
|
||||
$(Q) $(AR) $1 $(2)
|
||||
endef
|
||||
|
||||
|
@ -325,7 +325,7 @@ endef
|
|||
# created from scratch
|
||||
|
||||
define ARCHIVE
|
||||
@echo "AR (create): $(notdir $1) $(2)"
|
||||
@echo "AR (create): ${shell basename $(1)} $(2)"
|
||||
$(Q) $(RM) $1
|
||||
$(Q) $(AR) $1 $(2)
|
||||
endef
|
||||
|
|
Loading…
Reference in New Issue