Skip to content

Commit 7f5d410

Browse files
[[Bug 21488]] Check 'uname -m' if on Linux and 'uname -p' is unknown
Fixed bug 21488, where on some Linux systems the Makefile is unable to automatically determine the architecture to build for. This is due to the Makefile using 'uname -p', which can return 'unknown' in some cases. Fixed by adding an additional case statement into the Makefile that checks 'uname -m' if 'unknown' is returned from 'uname -p'.
1 parent 4f42840 commit 7f5d410

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

Makefile.common

+4
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,10 @@ guess_linux_arch_script := \
4343
case `uname -p` in \
4444
x86_64) echo x86_64 ;; \
4545
x86|i*86) echo x86 ;; \
46+
unknown) case `uname -m` in \
47+
x86_64) echo x86_64 ;; \
48+
x86|i*86) echo x86 ;; \
49+
esac ;; \
4650
esac
4751
guess_linux_arch := $(shell $(guess_linux_arch_script))
4852

0 commit comments

Comments
 (0)