зеркало из https://github.com/mozilla/pjs.git
Bugzilla Bug 294122: support building with MSYS (a set of Unix utilities
for Windows compiled with MinGW). The patch is contributed by Howard Chu <hyc@symas.com>. r=wtc,cls. Modified Files: arch.mk rules.mk
This commit is contained in:
Родитель
c99bb6dff5
Коммит
a4a7cc85d3
|
@ -20,6 +20,7 @@
|
|||
# the Initial Developer. All Rights Reserved.
|
||||
#
|
||||
# Contributor(s):
|
||||
# Howard Chu <hyc@symas.com>
|
||||
#
|
||||
# Alternatively, the contents of this file may be used under the terms of
|
||||
# either the GNU General Public License Version 2 or later (the "GPL"), or
|
||||
|
@ -267,6 +268,24 @@ ifeq (CYGWIN_NT,$(findstring CYGWIN_NT,$(OS_ARCH)))
|
|||
endif
|
||||
endif
|
||||
endif
|
||||
#
|
||||
# If uname -s returns "MINGW32_NT-5.1", we assume that we are using
|
||||
# the uname.exe in the MSYS toolkit.
|
||||
#
|
||||
ifeq (MINGW32_NT,$(findstring MINGW32_NT,$(OS_ARCH)))
|
||||
OS_RELEASE := $(patsubst MINGW32_NT-%,%,$(OS_ARCH))
|
||||
OS_ARCH = WINNT
|
||||
USE_MSYS = 1
|
||||
ifndef CPU_ARCH
|
||||
CPU_ARCH := $(shell uname -m)
|
||||
#
|
||||
# MSYS's uname -m returns "i686" on a Pentium Pro machine.
|
||||
#
|
||||
ifneq (,$(findstring 86,$(CPU_ARCH)))
|
||||
CPU_ARCH = x386
|
||||
endif
|
||||
endif
|
||||
endif
|
||||
|
||||
ifndef OS_TARGET
|
||||
OS_TARGET = $(OS_ARCH)
|
||||
|
|
|
@ -402,10 +402,11 @@ endif
|
|||
|
||||
ifeq (,$(filter-out _WIN%,$(NS_USE_GCC)_$(OS_TARGET)))
|
||||
NEED_ABSOLUTE_PATH := 1
|
||||
ifeq (,$(findstring ;,$(PATH)))
|
||||
PWD := $(subst \,/,$(shell cygpath -w `pwd`))
|
||||
else
|
||||
PWD := $(shell pwd)
|
||||
ifeq (,$(findstring ;,$(PATH)))
|
||||
ifndef USE_MSYS
|
||||
PWD := $(subst \,/,$(shell cygpath -w $(PWD)))
|
||||
endif
|
||||
endif
|
||||
endif
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче