From 78026363dabef1a5f216a165e7b0049d3ada125c Mon Sep 17 00:00:00 2001 From: Ken Raeburn Date: Sun, 30 May 2004 20:04:04 +0000 Subject: [PATCH] * shlib.conf (*-*-aix*): Use linker options for library finalization git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@16377 dc483132-0cff-0310-8789-dd5450dbe970 --- src/config/ChangeLog | 5 +++++ src/config/shlib.conf | 6 +++++- 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/src/config/ChangeLog b/src/config/ChangeLog index 250f143b4..fb0398695 100644 --- a/src/config/ChangeLog +++ b/src/config/ChangeLog @@ -1,3 +1,8 @@ +2004-05-30 Ken Raeburn + + * shlib.conf (*-*-aix*): Use linker options for library + finalization. + 2004-05-27 Ken Raeburn * win-pre.in (CP): Copy nul: plus the file, to avoid carrying over diff --git a/src/config/shlib.conf b/src/config/shlib.conf index 5d0729281..0768adb87 100644 --- a/src/config/shlib.conf +++ b/src/config/shlib.conf @@ -345,9 +345,13 @@ mips-*-netbsd*) if test "$krb5_cv_prog_gcc" = "yes" ; then RPATH_FLAG='-Wl,-blibpath:' LDCOMBINE='$(CC) -shared -v -o shr.o.$(LIBMAJOR).$(LIBMINOR) $$objlist -nostartfiles -Xlinker -bgcbypass:1 -Xlinker -bfilelist -Xlinker -bM:SRE -Xlinker -bE:$(SHLIB_EXPORT_FILE) -Xlinker -berok $(SHLIB_EXPFLAGS) -lc' + INIT_FINI_PREP='if test -z "$(LIBFINIFUNC)" then initfini=""; else initfini="-Wl,-initfini::$(LIBFINIFUNC):3"; fi' + use_linker_fini_option=yes else RPATH_FLAG=-blibpath: - LDCOMBINE='/bin/ld -o shr.o.$(LIBMAJOR).$(LIBMINOR) $$objlist -H512 -T512 -bnoentry -bgcbypass:1 -bnodelcsect -bfilelist -bM:SRE -bE:$(SHLIB_EXPORT_FILE) -berok $(SHLIB_EXPFLAGS) -lc' + LDCOMBINE='/bin/ld -o shr.o.$(LIBMAJOR).$(LIBMINOR) $$objlist -H512 -T512 -bnoentry -bgcbypass:1 -bnodelcsect -bfilelist -bM:SRE -bE:$(SHLIB_EXPORT_FILE) -berok $(SHLIB_EXPFLAGS) -lc $$initfini' + INIT_FINI_PREP='if test -z "$(LIBFINIFUNC)" then initfini=""; else initfini="-initfini::$(LIBFINIFUNC):3"; fi' + use_linker_fini_option=yes fi MAKE_SHLIB_COMMAND="${LDCOMBINE}"' && ar cq $@ shr.o.$(LIBMAJOR).$(LIBMINOR) && chmod +x $@ && rm -f shr.o.$(LIBMAJOR).$(LIBMINOR)' RPATH_TAIL=:/usr/lib:/lib -- 2.26.2