38 lines
1.1 KiB
Text
38 lines
1.1 KiB
Text
$NetBSD: patch-ag,v 1.5 2006/02/24 21:56:40 joerg Exp $
|
|
|
|
--- config/shlib.conf.orig 2005-04-07 17:38:51.000000000 -0400
|
|
+++ config/shlib.conf
|
|
@@ -8,6 +8,7 @@ SHLIBVEXT=.so.v-nobuild
|
|
SHLIBSEXT=.so.s-nobuild
|
|
# Most systems support profiled libraries.
|
|
PFLIBEXT=_p.a
|
|
+LALIBEXT=.la
|
|
# Most systems install shared libs as mode 644, etc. while hpux wants 755
|
|
INSTALL_SHLIB='$(INSTALL_DATA)'
|
|
#
|
|
@@ -17,6 +18,7 @@ use_linker_fini_option=no
|
|
STOBJEXT=.o
|
|
SHOBJEXT=.so
|
|
PFOBJEXT=.po
|
|
+LAOBJEXT=.lo
|
|
# Default for systems w/o shared libraries
|
|
CC_LINK_STATIC='$(CC) $(PROG_LIBPATH) $(CFLAGS) $(LDFLAGS)'
|
|
#
|
|
@@ -219,7 +221,7 @@ mips-*-netbsd*)
|
|
PROFFLAGS=-pg
|
|
;;
|
|
|
|
-*-*-netbsd*)
|
|
+*-*-netbsd* | *-*-dragonfly*)
|
|
PICFLAGS=-fPIC
|
|
SHLIBVEXT='.so.$(LIBMAJOR).$(LIBMINOR)'
|
|
SHLIBEXT=.so
|
|
@@ -395,3 +397,8 @@ if test "${MAKE_SHLIB_COMMAND}" = "x" ;
|
|
MAKE_SHLIB_COMMAND="${LDCOMBINE} -o \$@ \$\$objlist \$(SHLIB_EXPFLAGS) ${LDCOMBINE_TAIL}"
|
|
fi
|
|
fi
|
|
+
|
|
+# Settings for building with libtool.
|
|
+CC_LINK_LIBTOOL='$(LIBTOOL) --mode=link '"$CC_LINK_SHARED"
|
|
+LALIB_EXPFLAGS='$(SHLIB_EXPFLAGS)'
|
|
+LIBTOOL_TAIL='-rpath $(KRB5_LIBDIR) -version-info $(LIBMAJOR):$(LIBMINOR)'
|