From 9cdcaf7f0d704dccffd206de0dc616ae4d0677f8 Mon Sep 17 00:00:00 2001 From: thorpej Date: Wed, 17 Dec 1997 02:25:08 +0000 Subject: [PATCH] Add configuration goo for NetBSD/alpha. --- gnu/dist/bfd/config.bfd | 3 +++ gnu/dist/bfd/configure | 2 ++ gnu/dist/bfd/configure.host | 5 +++++ gnu/dist/bfd/configure.in | 2 ++ 4 files changed, 12 insertions(+) diff --git a/gnu/dist/bfd/config.bfd b/gnu/dist/bfd/config.bfd index 477c9b396731..be9416fd7512 100644 --- a/gnu/dist/bfd/config.bfd +++ b/gnu/dist/bfd/config.bfd @@ -49,6 +49,9 @@ esac case "${targ}" in # START OF targmatch.h #ifdef BFD64 + alpha-*-netbsd*) + targ_defvec=bfd_elf64_alpha_vec + targ_selvecs=ecoffalpha_little_vec alpha-*-netware*) targ_defvec=ecoffalpha_little_vec targ_selvecs=nlm32_alpha_vec diff --git a/gnu/dist/bfd/configure b/gnu/dist/bfd/configure index 5e1e3013957a..3681c098e13d 100644 --- a/gnu/dist/bfd/configure +++ b/gnu/dist/bfd/configure @@ -1645,6 +1645,7 @@ if test "${target}" = "${host}"; then EOF ;; + alpha*-*-netbsd*) COREFILE=netbsd-core.o ;; alpha*-*-*) COREFILE=osf-core.o ;; arm-*-riscix) COREFILE=trad-core.o ;; hppa*-*-hpux*) COREFILE=hpux-core.o ;; @@ -1873,6 +1874,7 @@ EOF hpux-core.o) COREFLAG=-DHPUX_CORE ;; irix-core.o) COREFLAG=-DIRIX_CORE ;; lynx-core.o) COREFLAG=-DLYNX_CORE ;; + netbsd-core.o) COREFLAG=-DNETBSD_CORE ;; osf-core.o) COREFLAG=-DOSF_CORE ;; ptrace-core.o) COREFLAG=-DPTRACE_CORE ;; rs6000-core.o) COREFLAG="$COREFLAG -DAIX_CORE" ;; diff --git a/gnu/dist/bfd/configure.host b/gnu/dist/bfd/configure.host index 2983274c77fa..cf814370ccf2 100644 --- a/gnu/dist/bfd/configure.host +++ b/gnu/dist/bfd/configure.host @@ -101,6 +101,11 @@ if [ "${shared}" = "true" ]; then fi case "${host}" in + alpha-*-netbsd*) + PICFLAG=-fPIC + HLDFLAGS='-rpath $(libdir)' + SHLIB_CFLAGS='-shared -Wl,-soname,$(SONAME)' + ;; *-dec-osf*) # -fpic is not needed on the Alpha. PICFLAG= diff --git a/gnu/dist/bfd/configure.in b/gnu/dist/bfd/configure.in index c62e729671eb..571a5100c514 100644 --- a/gnu/dist/bfd/configure.in +++ b/gnu/dist/bfd/configure.in @@ -155,6 +155,7 @@ if test "${target}" = "${host}"; then COREFILE=trad-core.o AC_DEFINE(TRAD_HEADER,"hosts/alphalinux.h") ;; + alpha*-*-netbsd*) COREFILE=netbsd-core.o ;; alpha*-*-*) COREFILE=osf-core.o ;; arm-*-riscix) COREFILE=trad-core.o ;; hppa*-*-hpux*) COREFILE=hpux-core.o ;; @@ -323,6 +324,7 @@ changequote([,])dnl hpux-core.o) COREFLAG=-DHPUX_CORE ;; irix-core.o) COREFLAG=-DIRIX_CORE ;; lynx-core.o) COREFLAG=-DLYNX_CORE ;; + netbsd-core.o) COREFLAG=-DNETBSD_CORE ;; osf-core.o) COREFLAG=-DOSF_CORE ;; ptrace-core.o) COREFLAG=-DPTRACE_CORE ;; rs6000-core.o) COREFLAG="$COREFLAG -DAIX_CORE" ;;