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 | |
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')
-rw-r--r-- | usr/src/lib/libc/amd64/Makefile | 4 | ||||
-rw-r--r-- | usr/src/lib/libc/i386/Makefile.com | 4 | ||||
-rw-r--r-- | usr/src/lib/libc/sparc/Makefile | 4 | ||||
-rw-r--r-- | usr/src/lib/libc/sparcv9/Makefile | 4 |
4 files changed, 16 insertions, 0 deletions
diff --git a/usr/src/lib/libc/amd64/Makefile b/usr/src/lib/libc/amd64/Makefile index b85a986f30..559d932357 100644 --- a/usr/src/lib/libc/amd64/Makefile +++ b/usr/src/lib/libc/amd64/Makefile @@ -18,6 +18,7 @@ # # CDDL HEADER END # + # # Copyright 2008 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. @@ -920,6 +921,9 @@ CFLAGS64 += -xinline= THREAD_DEBUG = $(NOT_RELEASE_BUILD)THREAD_DEBUG = -DTHREAD_DEBUG +# Make string literals read-only to save memory +CFLAGS64 += $(XSTRCONST) + ALTPICS= $(TRACEOBJS:%=pics/%) $(DYNLIB) := PICS += $(ROOTFS_LIBDIR64)/libc_i18n.a diff --git a/usr/src/lib/libc/i386/Makefile.com b/usr/src/lib/libc/i386/Makefile.com index b575da22b0..bab903b886 100644 --- a/usr/src/lib/libc/i386/Makefile.com +++ b/usr/src/lib/libc/i386/Makefile.com @@ -18,6 +18,7 @@ # # CDDL HEADER END # + # # Copyright 2008 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. @@ -966,6 +967,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 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 diff --git a/usr/src/lib/libc/sparcv9/Makefile b/usr/src/lib/libc/sparcv9/Makefile index dfa820097d..58e4629401 100644 --- a/usr/src/lib/libc/sparcv9/Makefile +++ b/usr/src/lib/libc/sparcv9/Makefile @@ -18,6 +18,7 @@ # # CDDL HEADER END # + # # Copyright 2008 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. @@ -929,6 +930,9 @@ CFLAGS64 += -xinline= THREAD_DEBUG = $(NOT_RELEASE_BUILD)THREAD_DEBUG = -DTHREAD_DEBUG +# Make string literals read-only to save memory. +CFLAGS64 += $(XSTRCONST) + ALTPICS= $(TRACEOBJS:%=pics/%) $(DYNLIB) := PICS += $(ROOTFS_LIBDIR64)/libc_i18n.a |