Added MacOS X shared library support
authorBrad Thompson <yak@mit.edu>
Fri, 13 Aug 1999 23:18:54 +0000 (23:18 +0000)
committerBrad Thompson <yak@mit.edu>
Fri, 13 Aug 1999 23:18:54 +0000 (23:18 +0000)
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@11651 dc483132-0cff-0310-8789-dd5450dbe970

src/aclocal.m4

index aca3d0bc7987ad311317ce57ff78ad20c8c95233..b4e6b4abe2098ae6a387f5e2f8cfdbb8ede027bc 100644 (file)
@@ -1093,6 +1093,19 @@ mips-*-netbsd*)
        PROFFLAGS=-pg
        ;;
 
+*-*-macos10*)
+       PICFLAGS=-fno-common
+       SHLIBVEXT='.$(LIBMAJOR).$(LIBMINOR).dylib'
+       SHLIBSEXT='.$(LIBMAJOR).dylib'
+       SHLIB_EXPFLAGS='$(SHLIB_DIRS) $(SHLIB_EXPLIBS)'
+       SHLIBEXT=.dylib
+       SHOBJEXT=.so
+       LDCOMBINE='cc -dynamiclib -dylib_compatibility_version=$(LIBMAJOR).$(LIBMINOR) -dylib_current_version=$(LIBMAJOR).$(LIBMINOR)'
+       CC_LINK_SHARED='$(CC) $(PROG_LIBPATH) -dynamic'
+       CC_LINK_STATIC='$(CC) $(PROG_LIBPATH) -static'
+       RUN_ENV='DYLD_LIBRARY_PATH=`echo $(PROG_LIBPATH) | sed -e "s/-L//g" -e "s/ /:/g"`; export DYLD_LIBRARY_PATH;'
+       ;;
+
 *-*-solaris*)
        if test "$krb5_cv_prog_gcc" = yes; then
                PICFLAGS=-fpic