Skip to content

Commit 898b277

Browse files
committed
Merge pull request #57 from basho/jem-arch-naming
Base architecture naming on erlc arch
2 parents 6b788bc + de9ee3f commit 898b277

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Makefile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,8 @@ endif
4343

4444
ifeq ($(OS),SunOS) # Solaris flavors
4545
KERNELVER = $(shell uname -v | grep -c joyent 2> /dev/null)
46-
ARCH = $(shell uname -p)
46+
ARCH = $(shell file `which erlc` | grep -c 64-bit 2> /dev/null | awk \
47+
'{if ($$1 == "0") {print "i386"} else {print "x86_64"}}')
4748

4849
ifneq ($(KERNELVER),0) # SmartOS
4950
OSNAME = SmartOS

0 commit comments

Comments
 (0)