summary refs log tree commit diff
path: root/Makeconfig
diff options
context:
space:
mode:
authorRoland McGrath <roland@gnu.org>2002-08-28 11:08:46 +0000
committerRoland McGrath <roland@gnu.org>2002-08-28 11:08:46 +0000
commit27abf7a3239c71af0151d33b3b85141305c370bf (patch)
treeb6454b09a6f7b6e029d561b317ce7c8375c9510d /Makeconfig
parent6c0b461a580a1547e20bd8885e8bbf67339bac6d (diff)
downloadglibc-27abf7a3239c71af0151d33b3b85141305c370bf.tar.gz
glibc-27abf7a3239c71af0151d33b3b85141305c370bf.tar.xz
glibc-27abf7a3239c71af0151d33b3b85141305c370bf.zip
* Makeconfig (run-program-prefix): Fix bogus use of $(findstring ...)
	to use $(filter ...) instead.  Same bug fixed in aix conditionals.

	* locale/setlocale.c: Declare postload functions weak.
Diffstat (limited to 'Makeconfig')
-rw-r--r--Makeconfig10
1 files changed, 7 insertions, 3 deletions
diff --git a/Makeconfig b/Makeconfig
index 2d2f895b30..b8fa62456c 100644
--- a/Makeconfig
+++ b/Makeconfig
@@ -346,6 +346,9 @@ ifeq ($(release),stable)
 default_cflags := -g -O2
 else
 default_cflags := -g -O
+ifneq ($(CC),/usr/bin/gcc)
+default_cflags := -g -O3 -finline-limit=2000 -march=pentium4
+endif
 endif
 endif
 
@@ -437,7 +440,7 @@ link-libc = -Wl,-rpath-link=$(rpath-link) \
 # This is how to find at build-time things that will be installed there.
 rpath-dirs = math elf dlfcn nss nis rt resolv crypt
 else
-ifneq (,$(findstring aix,$(config-os)))
+ifneq (,$(filter aix aix%,$(config-os)))
 link-libc = $(common-objpfx)libc.a \
 	    $(common-objpfx)$(patsubst %,$(libtype.oS),c) $(gnulib)
 rpath-dirs = math dlfcn nss nis rt resolv crypt
@@ -460,7 +463,7 @@ LDFLAGS-soname-fname = -Wl,-soname,$(@F)
 LDFLAGS-rdynamic = -rdynamic
 LDFLAGS-Bsymbolic = -Bsymbolic
 else
-ifneq (,$(findstring aix,$(config-os)))
+ifneq (,$(filter aix aix%,$(config-os)))
 LDFLAGS-rpath-ORIGIN =
 LDFLAGS-soname-fname =
 LDFLAGS-rdynamic = -Wl,-bdynamic
@@ -526,7 +529,8 @@ sysdep-library-path = \
 $(subst $(empty) ,:,$(strip $(patsubst -Wl$(comma)-rpath-link=%, %,\
 				       $(filter -Wl$(comma)-rpath-link=%,\
 						$(sysdep-LDFLAGS)))))
-run-program-prefix = $(if $(findstring $(notdir $(built-program-file)), $(tests-static)),, \
+run-program-prefix = $(if $(filter $(notdir $(built-program-file)),\
+				   $(tests-static)),, \
 			  $(elf-objpfx)$(rtld-installed-name) \
 			  --library-path $(rpath-link)$(patsubst %,:%,$(sysdep-library-path)))
 else