1998-10-30  Ulrich Drepper  <drepper@cygnus.com>

	* Makerules (build-shlib): Add -O to generate optimized shared
	objects.
This commit is contained in:
Ulrich Drepper
1998-10-30 14:37:19 +00:00
parent 0e19d4a310
commit e980ca9229
4 changed files with 46 additions and 41 deletions
+3 -3
View File
@@ -353,7 +353,7 @@ lib%.so: lib%_pic.a $(+preinit) $(+postinit) $(+interp)
$(build-shlib)
define build-shlib
$(LINK.o) -shared -o $@ $(sysdep-LDFLAGS) $(config-LDFLAGS) \
$(LINK.o) -shared -O -o $@ $(sysdep-LDFLAGS) $(config-LDFLAGS) \
-B$(csu-objpfx) $(load-map-file) \
-Wl,-soname=lib$(libprefix)$(@F:lib%.so=%).so$($(@F)-version) \
$(LDFLAGS.so) $(LDFLAGS-$(@F:lib%.so=%).so) \
@@ -670,8 +670,8 @@ ifndef subdir
# link script. It contains references for the various libraries we need.
# The libc.so object is not complete since some functions are only defined
# in libc_nonshared.a.
# We need to use absolute paths since otherwise local copies (if they exist)
# of the files are taken by the linker.
# We need to use absolute paths since otherwise local copies (if they exist)
# of the files are taken by the linker.
install: $(inst_libdir)/libc.so
$(inst_libdir)/libc.so: $(common-objpfx)libc.so$(libc.so-version) \
$(inst_libdir)/$(patsubst %,$(libtype.oS),\