File tree 1 file changed +30
-1
lines changed 1 file changed +30
-1
lines changed Original file line number Diff line number Diff line change @@ -324,11 +324,40 @@ RELEASE=$(shell sed -ne 's/\#define NODE_VERSION_IS_RELEASE \([01]\)/\1/p' src/n
324
324
PLATFORM =$(shell uname | tr '[:upper:]' '[:lower:]')
325
325
NPMVERSION =v$(shell cat deps/npm/package.json | grep '"version"' | sed 's/^[^:]* : "\([^"]* \) ",.*/\1/')
326
326
327
- ifeq ($(findstring x86_64,$(shell uname -m) ) ,x86_64)
327
+ UNAME_M =$(shell uname -m)
328
+ ifeq ($(findstring x86_64,$(UNAME_M ) ) ,x86_64)
328
329
DESTCPU ?= x64
329
330
else
331
+ ifeq ($(findstring ppc64,$(UNAME_M ) ) ,ppc64)
332
+ DESTCPU ?= ppc64
333
+ else
334
+ ifeq ($(findstring ppc,$(UNAME_M ) ) ,ppc)
335
+ DESTCPU ?= ppc
336
+ else
337
+ ifeq ($(findstring s390x,$(UNAME_M ) ) ,s390x)
338
+ DESTCPU ?= s390x
339
+ else
340
+ ifeq ($(findstring s390,$(UNAME_M ) ) ,s390)
341
+ DESTCPU ?= s390
342
+ else
343
+ ifeq ($(findstring arm,$(UNAME_M ) ) ,arm)
344
+ DESTCPU ?= arm
345
+ else
346
+ ifeq ($(findstring aarch64,$(UNAME_M ) ) ,aarch64)
347
+ DESTCPU ?= aarch64
348
+ else
349
+ ifeq ($(findstring powerpc,$(shell uname -p) ) ,powerpc)
350
+ DESTCPU ?= ppc64
351
+ else
330
352
DESTCPU ?= x86
331
353
endif
354
+ endif
355
+ endif
356
+ endif
357
+ endif
358
+ endif
359
+ endif
360
+ endif
332
361
ifeq ($(DESTCPU ) ,x64)
333
362
ARCH =x64
334
363
else
You can’t perform that action at this time.
0 commit comments