* shlib.conf (alpha*-dec-osf*): Add support for export list, using a temporary
authorKen Raeburn <raeburn@mit.edu>
Fri, 30 Apr 2004 00:59:37 +0000 (00:59 +0000)
committerKen Raeburn <raeburn@mit.edu>
Fri, 30 Apr 2004 00:59:37 +0000 (00:59 +0000)
file, and init/fini functions.
(mips-sgi-irix*): Previous support should not be used with gcc.

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@16287 dc483132-0cff-0310-8789-dd5450dbe970

src/config/ChangeLog
src/config/shlib.conf

index a080f85d4971e670fdbc7bdbaa3a476baeaf6b0b..3b09853617133d49f0b324dc96ebbe18ad6843b7 100644 (file)
@@ -1,5 +1,9 @@
 2004-04-29  Ken Raeburn  <raeburn@mit.edu>
 
+       * shlib.conf (alpha*-dec-osf*): Add support for export list, using
+       a temporary file, and init/fini functions.
+       (mips-sgi-irix*): Previous support should not be used with gcc.
+
        * pre.in (EXTRA_FILES): New variable.
        * post.in (clean-unix): Delete extra files.
 
index bc4a4dbdfced68afb744b95e91e5368c81cefefd..854dbc2c85d40d4be17ce2df26586f4e673b794e 100644 (file)
@@ -36,7 +36,9 @@ alpha*-dec-osf*)
        SHLIBEXT=.so
        # Alpha OSF/1 doesn't need separate PIC objects
        SHOBJEXT=.o
-       LDCOMBINE='$(CC) -shared -Wl,-expect_unresolved -Wl,\* -Wl,-update_registry -Wl,$(BUILDTOP)/so_locations -Wl,-soname -Wl,lib$(LIB)$(SHLIBSEXT)'
+       INIT_FINI_PREP='if test -z "$(LIBINITFUNC)"; then initfini=""; else initfini="-Wl,-init,$(LIBINITFUNC)__auxinit"; fi; if test -z "$(LIBFINIFUNC)";then :;else initfini="$$initfini -Wl,-fini,$(LIBFINIFUNC)"; fi'
+       LDCOMBINE='sed "s/^/-exported_symbol /" < $(SHLIB_EXPORT_FILE) > export && $(CC) -shared -Wl,-expect_unresolved -Wl,\* -Wl,-update_registry -Wl,$(BUILDTOP)/so_locations -Wl,-soname -Wl,lib$(LIB)$(SHLIBSEXT) -Wl,-hidden -Wl,-input,export $$initfini'
+       EXTRA_FILES="$EXTRA_FILES export"
        SHLIB_EXPFLAGS='-rpath $(SHLIB_RDIRS) $(SHLIB_DIRS) $(SHLIB_EXPLIBS)'
        PROFFLAGS=-pg
        RPATH_FLAG='-Wl,-rpath -Wl,'
@@ -129,9 +131,13 @@ mips-sgi-irix*)
        SHLIBSEXT='.so.$(LIBMAJOR)'
        SHLIBEXT=.so
        SHOBJEXT=.o
-       use_linker_init_option=yes
-       use_linker_fini_option=yes
-       INIT_FINI_PREP='if test -z "$(LIBINITFUNC)"; then initfini=""; else initfini="-Wl,-init,$(LIBINITFUNC)__auxinit"; fi; if test -z "$(LIBFINIFUNC)";then :;else initfini="$$initfini -Wl,-fini,$(LIBFINIFUNC)"; fi'
+       if test "$krb5_cv_prog_gcc" = yes; then
+               :
+       else
+               use_linker_init_option=yes
+               use_linker_fini_option=yes
+               INIT_FINI_PREP='if test -z "$(LIBINITFUNC)"; then initfini=""; else initfini="-Wl,-init,$(LIBINITFUNC)__auxinit"; fi; if test -z "$(LIBFINIFUNC)";then :;else initfini="$$initfini -Wl,-fini,$(LIBFINIFUNC)"; fi'
+       fi
        LDCOMBINE='$(CC) -shared -Wl,-ignore_unresolved -Wl,-update_registry -Wl,$(BUILDTOP)/so_locations -Wl,-soname -Wl,lib$(LIB)$(SHLIBSEXT) $$initfini'
        LDCOMBINE_TAIL='-Wl,-exports_file -Wl,$(SHLIB_EXPORT_FILE)'
        SHLIB_EXPFLAGS='-rpath $(SHLIB_RDIRS) $(SHLIB_DIRS) $(SHLIB_EXPLIBS)'