From 5db89d52a0bd5be655dbeb6da85d22125466742d Mon Sep 17 00:00:00 2001 From: Ken Raeburn Date: Fri, 17 Dec 2004 23:58:47 +0000 Subject: [PATCH] can't build shared libraries on sparc64-netbsd 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 | 5 +++++ src/config/shlib.conf | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/src/config/ChangeLog b/src/config/ChangeLog index 0fbaf7fc8..c82bec9c3 100644 --- a/src/config/ChangeLog +++ b/src/config/ChangeLog @@ -1,3 +1,8 @@ +2004-12-17 Ken Raeburn + + * shlib.conf (*-*-netbsd*): Use -fPIC instead of -fpic, which + won't work on sparc64 at least. + 2004-12-15 Jeffrey Altman * win-pre.in; optionally build debug symbols for release builds diff --git a/src/config/shlib.conf b/src/config/shlib.conf index 3205bb348..f5c6b8405 100644 --- a/src/config/shlib.conf +++ b/src/config/shlib.conf @@ -204,7 +204,7 @@ mips-*-netbsd*) ;; *-*-netbsd*) - PICFLAGS=-fpic + PICFLAGS=-fPIC SHLIBVEXT='.so.$(LIBMAJOR).$(LIBMINOR)' SHLIBEXT=.so LDCOMBINE='ld -Bshareable' -- 2.26.2