From f879186efa843e7cb77fd48566baca9ac7f3264a Mon Sep 17 00:00:00 2001 From: Tom Yu Date: Mon, 29 Jan 2001 00:07:27 +0000 Subject: [PATCH] * Makefile.in: Remove rule for aix.bincmds; we don't need it anymore. * makeshlib.sh: Use the linker flag -berok so that unresolved symbols don't turn into link-time errors for building shared libs on AIX. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@12960 dc483132-0cff-0310-8789-dd5450dbe970 --- src/util/ChangeLog | 9 +++++++++ src/util/Makefile.in | 8 -------- src/util/makeshlib.sh | 8 +++----- 3 files changed, 12 insertions(+), 13 deletions(-) diff --git a/src/util/ChangeLog b/src/util/ChangeLog index 1b696f851..cb5779935 100644 --- a/src/util/ChangeLog +++ b/src/util/ChangeLog @@ -1,3 +1,12 @@ +2001-01-28 Tom Yu + + * Makefile.in: Remove rule for aix.bincmds; we don't need it + anymore. + + * makeshlib.sh: Use the linker flag -berok so that unresolved + symbols don't turn into link-time errors for building shared libs + on AIX. + 2000-11-01 Ezra Peisach * reconf: Rework syntax to detect version numbers of newer diff --git a/src/util/Makefile.in b/src/util/Makefile.in index e0514d033..4bd7a0469 100644 --- a/src/util/Makefile.in +++ b/src/util/Makefile.in @@ -49,14 +49,6 @@ makeshlib: $(srcdir)/makeshlib.sh Makefile $(RM) $@ $@.tmp $(SLIBSH) $(srcdir)/makeshlib.sh >$@.tmp&&chmod a+x $@.tmp&&mv $@.tmp $@ - -# -# We only need this for AIX, but we generate it for all systems. -# -all-unix:: aix.bincmds - -aix.bincmds: Makefile - echo libpath $(KRB5_LIBDIR):`pwd`/$(TOPLIBD):/usr/lib:/lib >aix.bincmds clean:: $(RM) libupdate makeshlib diff --git a/src/util/makeshlib.sh b/src/util/makeshlib.sh index ec485cac1..303c0ced9 100644 --- a/src/util/makeshlib.sh +++ b/src/util/makeshlib.sh @@ -38,16 +38,14 @@ case $host in stat=$? if [ $stat -eq 0 ] ; then if test "$HAVE_GCC" = "yes" ; then - - - $CC -o shr.o.$version $library -nostartfiles -Xlinker -bgcbypass:1 -Xlinker -bfilelist -Xlinker -bM:SRE -Xlinker -bE:${library}.syms $LDFLAGS -lc + $CC -o shr.o.$version $library -nostartfiles -Xlinker -bgcbypass:1 -Xlinker -bfilelist -Xlinker -bM:SRE -Xlinker -bE:${library}.syms -Xlinker -berok $LDFLAGS -lc else # Pull in by explicit pathname so we don't get gnu ld if # installed (it could be even if we chose not to use gcc). # Better still would be to do this through $CC -- how do # we get crt0.o left out? - echo /bin/ld -o shr.o.$version $library -H512 -T512 -bnoentry -bM:SRE $LDFLAGS -bgcbypass:1 -bnodelcsect -bE:${library}.syms $libdirfl $liblist -lc - /bin/ld -o shr.o.$version $library -H512 -T512 -bnoentry -bM:SRE $LDFLAGS -bgcbypass:1 -bnodelcsect -bE:${library}.syms -lc + echo /bin/ld -o shr.o.$version $library -H512 -T512 -bnoentry -bM:SRE $LDFLAGS -bgcbypass:1 -bnodelcsect -bE:${library}.syms -berok $libdirfl $liblist -lc + /bin/ld -o shr.o.$version $library -H512 -T512 -bnoentry -bM:SRE $LDFLAGS -bgcbypass:1 -bnodelcsect -bE:${library}.syms -berok -lc fi stat=$? if [ $stat -eq 0 ] ; then -- 2.26.2