Subject: Re: shared object problem
To: None <port-alpha@NetBSD.ORG, port-mips@NetBSD.ORG, port-pmax@NetBSD.ORG>
From: Arne Henrik Juul <arnej@stud.math.ntnu.no>
List: port-mips
Date: 07/26/1998 19:37:10
I wrote:
> pmax)
> d_dlopen=$define
> d_dlerror=$define
> cccdlflags="-DPIC -fPIC $cccdlflags"
> ccdlflags=-Wl,--export-dynamic
> lddlflags="-x -shared $lddlflags"
> ;;
this is wrong, lddlflags isn't flags to ld (despite the name)
but to cc. Sorry about that. It turns out that I just
needed the patch to hints/netbsd.sh, and I guess this should
work for alpha as well.
- Arne H. J.
--- orig-5.004_04/hints/netbsd.sh Thu May 8 17:52:59 1997
+++ hints/netbsd.sh Sun Jul 26 19:27:16 1998
@@ -20,16 +20,16 @@
;;
*)
case `uname -m` in
- alpha|powerpc|pmax)
+ powerpc|vax)
d_dlopen=$undef
;;
-# this doesn't work (yet).
-# alpha)
-# d_dlopen=$define
-# d_dlerror=$define
-# cccdlflags="-DPIC -fPIC $cccdlflags"
-# lddlflags="-shared $lddlflags"
-# ;;
+ alpha|pmax)
+ d_dlopen=$define
+ d_dlerror=$define
+ cccdlflags="-DPIC -fPIC $cccdlflags"
+ ccdlflags="-Wl,--export-dynamic"
+ lddlflags="-shared $lddlflags"
+ ;;
*)
d_dlopen=$define
d_dlerror=$define