Mercurial > illumos > illumos-gate
changeset 5038:c27e9402c8fc
6564479 Unable to build libopenssl using Studio 12
author | jp161948 |
---|---|
date | Thu, 13 Sep 2007 04:35:54 -0700 |
parents | 13b3807acc31 |
children | 75097ff1169e |
files | usr/src/lib/openssl/libcrypto/sparcv9/Makefile |
diffstat | 1 files changed, 13 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/usr/src/lib/openssl/libcrypto/sparcv9/Makefile Wed Sep 12 22:37:07 2007 -0700 +++ b/usr/src/lib/openssl/libcrypto/sparcv9/Makefile Thu Sep 13 04:35:54 2007 -0700 @@ -19,7 +19,7 @@ # CDDL HEADER END # # -# Copyright 2006 Sun Microsystems, Inc. All rights reserved. +# Copyright 2007 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # # ident "%Z%%M% %I% %E% SMI" @@ -31,6 +31,18 @@ # Override the default specified in ../Makefile.com MD5_OBJ_ASM= md5/asm/md5-sparcv9.o +# suppress this specific warning triggered by SS12 compiler. We do it here so +# that we don't have to change the source code using pragma directives. The +# issue is that acomp is not equipped to perform control flow checks on demand +# so warning can be issued on an invalid construct even when the construct is +# not reachable, like this: +# +# char c, buf[10]; +# if (0 != 0) +# c = buf[-1]; +# +$(__SSNEXT)CFLAGS64 += -erroff=E_BAD_VAR_ADDRESS_ARITH + # lint doesn't like asm files lint := MD5_OBJ_ASM = lint := BN_ASM =