diff options
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 |