Skip to content

Commit aa2f903

Browse files
author
Jean-François Larvoire
committed
Use SysToolsLib's distrib shell script to identify the Unix distribution processor
1 parent 5b42170 commit aa2f903

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

C/SRC/Makefile

+2-1
Original file line numberDiff line numberDiff line change
@@ -68,9 +68,10 @@ else ifneq ($(shell ../../Shell/truename -q "$(PWD)"), $(shell ../../Shell/truen
6868
endif
6969

7070
# Identify the OS and processor, and generate an output base directory name from that
71+
needed_before_using_distrib := $(shell chmod +x ../../Shell/distrib)
7172
ifeq "$(OS)" "" # If $(OS) is undefined or empty
7273
OS := $(shell uname -s)
73-
PROC := $(shell uname -p)
74+
PROC := $(shell ../../Shell/distrib processor)# Don't just use uname -p, which is unreliable
7475
MACHINE := $(shell uname -m)
7576
ifeq "$(OS)" "OSF1"
7677
ifeq "$(MACHINE)" "alpha"

C/SysLib/Makefile

+2-1
Original file line numberDiff line numberDiff line change
@@ -60,9 +60,10 @@ else ifneq ($(shell ../../Shell/truename -q "$(PWD)"), $(shell ../../Shell/truen
6060
endif
6161

6262
# Identify the OS and processor, and generate an output base directory name from that
63+
needed_before_using_distrib := $(shell chmod +x ../../Shell/distrib)
6364
ifeq "$(OS)" "" # If $(OS) is undefined or empty
6465
OS := $(shell uname -s)
65-
PROC := $(shell uname -p)
66+
PROC := $(shell ../../Shell/distrib processor)# Don't just use uname -p, which is unreliable
6667
MACHINE := $(shell uname -m)
6768
ifeq "$(OS)" "OSF1"
6869
ifeq "$(MACHINE)" "alpha"

0 commit comments

Comments
 (0)