can't build shared libraries on sparc64-netbsd
authorKen Raeburn <raeburn@mit.edu>
Fri, 17 Dec 2004 23:58:47 +0000 (23:58 +0000)
committerKen Raeburn <raeburn@mit.edu>
Fri, 17 Dec 2004 23:58:47 +0000 (23:58 +0000)
Current trunk code fails to build shared libraries on sparc64-netbsd
because the generated relocations with -fpic don't have the range
necessary.  In general, any platform with sparc support that we want
to build for should use -fPIC instead of -fpic, with gcc.  (I haven't
checked whether openbsd or freebsd support sparc these days; I think
they're the only ones in our shlib.conf that we might care about.)

* shlib.conf (*-*-netbsd*): Use -fPIC instead of -fpic, which won't work on
sparc64 at least.

ticket: new
target_version: 1.4
tags: pullup

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

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

index 0fbaf7fc81d8ccc0b64e783fa094ecc690ea6c90..c82bec9c389087372094b0578f6befd5dacc6979 100644 (file)
@@ -1,3 +1,8 @@
+2004-12-17  Ken Raeburn  <raeburn@mit.edu>
+
+       * shlib.conf (*-*-netbsd*): Use -fPIC instead of -fpic, which
+       won't work on sparc64 at least.
+
 2004-12-15  Jeffrey Altman <jaltman@mit.edu>
 
         * win-pre.in; optionally build debug symbols for release builds
index 3205bb34857899f5d2b11bca552d5e5b7342860a..f5c6b84056416d9d1e87aac4fa1fa58e85d789bc 100644 (file)
@@ -204,7 +204,7 @@ mips-*-netbsd*)
        ;;
 
 *-*-netbsd*)
-       PICFLAGS=-fpic
+       PICFLAGS=-fPIC
        SHLIBVEXT='.so.$(LIBMAJOR).$(LIBMINOR)'
        SHLIBEXT=.so
        LDCOMBINE='ld -Bshareable'