summaryrefslogtreecommitdiff
path: root/usr/src/tools/smatch
diff options
context:
space:
mode:
authorJerry Jelinek <jerry.jelinek@joyent.com>2019-08-15 11:25:30 +0000
committerJerry Jelinek <jerry.jelinek@joyent.com>2019-08-15 11:25:30 +0000
commit347d48002595b630e29ac3081e3427710c2d0bd4 (patch)
treea40a2c2e466c0c6d7286d71de13e11a0d787b6af /usr/src/tools/smatch
parent1f94681ec6683efbae1dc2cab90b4baadd31d0df (diff)
parentc023f651c0471d0024cb0a436d1f77bf37350180 (diff)
downloadillumos-joyent-347d48002595b630e29ac3081e3427710c2d0bd4.tar.gz
[illumos-gate merge]
commit c023f651c0471d0024cb0a436d1f77bf37350180 10166 loader: support com.delphix:removing commit 582237e641696363bb029af5d31bf63b495e1b7d 11548 11506 breaks the SPARC build commit c6dd35daf6754ceadffe27f721e78fec1f894036 11549 loader: smatch error: efi_cons_cursor(): uninitialized symbol 'row' and 'col' commit bf8d275a3639b21395ae091b2ec762346fc931f6 10721 ib: NULL pointer errors
Diffstat (limited to 'usr/src/tools/smatch')
-rw-r--r--usr/src/tools/smatch/Makefile5
1 files changed, 4 insertions, 1 deletions
diff --git a/usr/src/tools/smatch/Makefile b/usr/src/tools/smatch/Makefile
index 821e2804f0..bd0bce00b2 100644
--- a/usr/src/tools/smatch/Makefile
+++ b/usr/src/tools/smatch/Makefile
@@ -27,8 +27,11 @@ include ../Makefile.tools
# We have to build smatch before we can use cw
i386_CC = $(GNUC_ROOT)/bin/gcc
sparc_CC = $(GNUC_ROOT)/bin/gcc
+# sparc doesn't recognise -msave-args
+i386_SMATCHFLAGS = -msave-args
+sparc_SMATCHFLAGS =
-CFLAGS = -O -m64 -msave-args -D__sun -Wall -Wno-unknown-pragmas -std=gnu99 -nodefaultlibs
+CFLAGS = -O -m64 $($(MACH)_SMATCHFLAGS) -D__sun -Wall -Wno-unknown-pragmas -std=gnu99 -nodefaultlibs
SMATCHDATADIR = $(ROOTONBLDSHARE)/smatch