* Makerules [AIX] (build-shlib-helper): Precede linker options
	with -Wl.

	* Makeconfig (config-LDFLAGS): Add ld.so only for ELF.
This commit is contained in:
Ulrich Drepper 2001-07-08 15:07:16 +00:00
parent 5f6b4f1db0
commit 994431ed53
3 changed files with 7 additions and 2 deletions

View File

@ -1,5 +1,10 @@
2001-07-08 Ulrich Drepper <drepper@redhat.com>
* Makerules [AIX] (build-shlib-helper): Precede linker options
with -Wl.
* Makeconfig (config-LDFLAGS): Add ld.so only for ELF.
* sysdeps/unix/make_errlist.c: Adjust sys_errlist declaration to
what we define in <stdio.h>.

View File

@ -417,7 +417,7 @@ ifndef +link-bounded
$(link-extra-libs-bounded) $(link-libc-bounded) $(+postctor) $(+postinit)
endif
ifndef config-LDFLAGS
ifeq (yes,$(build-shared))
ifeq (yesyes,$(build-shared)$(elf))
config-LDFLAGS = -Wl,-dynamic-linker=$(slibdir)/$(rtld-installed-name)
endif
endif

View File

@ -410,7 +410,7 @@ endef
else
ifneq (,$(findstring aix,$(config-os)))
define build-shlib-helper
$(LINK.o) -G -bM:SRE -bnoentry -bE:$(<:a=exp) \
$(LINK.o) -Wl,-G,-bM:SRE,-bnoentry,-bE:$(<:a=exp) \
$(sysdep-LDFLAGS) $(config-LDFLAGS) $(extra-B-$(@F:lib%.so=%).so) \
$(extra-B-$(@F:lib%.so=%).so) $(load-map-file) \
$(LDFLAGS.so) $(LDFLAGS-$(@F:lib%.so=%).so) \