diff options
author | Roger A. Faulkner <Roger.Faulkner@Sun.COM> | 2008-12-15 20:19:14 -0800 |
---|---|---|
committer | Roger A. Faulkner <Roger.Faulkner@Sun.COM> | 2008-12-15 20:19:14 -0800 |
commit | 7b1b42816975f5b0069dff7932115ba672ad125c (patch) | |
tree | a5ebe62183ca00bf3812a0844ab9d92cc65bcf4f /usr/src/lib/libc/sparc | |
parent | bff3dadc2c9a6711b6e359fc39d0170de218be50 (diff) | |
download | illumos-gate-7b1b42816975f5b0069dff7932115ba672ad125c.tar.gz |
6540117 libc should be compiled with -xstrconst
6556156 libnsl+libsocket should be compiled with -xstrconst
Contributed by Roland Mainz <roland.mainz@nrubsig.org>
Diffstat (limited to 'usr/src/lib/libc/sparc')
-rw-r--r-- | usr/src/lib/libc/sparc/Makefile | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/usr/src/lib/libc/sparc/Makefile b/usr/src/lib/libc/sparc/Makefile index 75cc4c7e13..36f5ac4d42 100644 --- a/usr/src/lib/libc/sparc/Makefile +++ b/usr/src/lib/libc/sparc/Makefile @@ -18,6 +18,7 @@ # # CDDL HEADER END # + # # Copyright 2008 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. @@ -986,6 +987,9 @@ CFLAGS += -xinline= THREAD_DEBUG = $(NOT_RELEASE_BUILD)THREAD_DEBUG = -DTHREAD_DEBUG +# Make string literals read-only to save memory. +CFLAGS += $(XSTRCONST) + ALTPICS= $(TRACEOBJS:%=pics/%) $(DYNLIB) := PICS += $(ROOTFS_LIBDIR)/libc_i18n.a |