From: David Lebel <lebel@lebel.org>
To: Andrej Borsenkow <Andrej.Borsenkow@mow.siemens.ru>
Cc: zsh-workers@sunsite.dk
Subject: Re: dynamic linking on OpenBSD
Date: Wed, 6 Jun 2001 12:33:14 -0400 [thread overview]
Message-ID: <20010606123314.B29541@lebel.org> (raw)
In-Reply-To: <003501c0eea5$ad2a02c0$21c9ca95@mow.siemens.ru>; from Andrej.Borsenkow@mow.siemens.ru on Wed, Jun 06, 2001 at 08:28:10PM +0400
Quoting Andrej Borsenkow (Andrej.Borsenkow@mow.siemens.ru):
> 1. Could you please send diff against configure.in not configure? We do not
> keep configure in CVS and it is hard to backport it. Even better, update to
> current CVS and diff against zshconfig.ac.
>
> 2. Your patch looks like OpenBSD does not use ELF. Is it really the case?
It does on some platform use ELF. On other (the majority), its a.out.
By using ${CC} -shared -fPIC is a sure way to generate a proper .so
across all the platforms (be it ELF or a.out).
Here is the diff against configure.in:
$OpenBSD$
--- configure.in.orig Tue Jun 5 18:52:48 2001
+++ configure.in Tue Jun 5 19:00:31 2001
@@ -1595,6 +1595,16 @@ char *argv[];
;;
esac
else
+ case "$host" in
+ *openbsd*)
+ DLLD="${DLLD=$CC}"
+ DLLDARG="${LDARG}"
+ ;;
+ * )
+ DLLD="${DLLD=ld}"
+ DLLDARG=""
+ ;;
+ esac
DLLD="${DLLD=ld}"
DLLDARG=""
fi
@@ -1615,7 +1625,7 @@ char *argv[];
netbsd*) DLLDFLAGS="${DLLDFLAGS=${DLLDARG}-x -shared --whole-archive}" ;;
aix*) DLLDFLAGS="${DLLDFLAGS=-G -bexpall -lc}" ;;
solaris*|sysv4*|esix*) DLLDFLAGS="${DLLDFLAGS=-G}" ;;
- openbsd*) DLLDFLAGS="${DLLDFLAGS=-Bshareable}" ;;
+ openbsd*) DLLDFLAGS="${DLLDFLAGS=-shared -fPIC}" ;;
esac
case "$host" in
*-hpux*) EXTRA_LDFLAGS="${EXTRA_LDFLAGS=-Wl,-E}" ;;
Ciao,
...David
--
// david lebel <lebel@{lebel.org,nobiaze.com,openbsd.org}> //
// http://www.lebel.org/ http://www.nobiaze.com/ //
// pgp: 3633 6999 D47E 73ED 099F 4341 08A4 8E48 EF56 61D1 //
next prev parent reply other threads:[~2001-06-06 16:33 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2001-06-06 16:12 David Lebel
2001-06-06 16:28 ` Andrej Borsenkow
2001-06-06 16:33 ` David Lebel [this message]
2001-06-06 16:52 ` Andrej Borsenkow
2001-06-06 17:01 ` David Lebel
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20010606123314.B29541@lebel.org \
--to=lebel@lebel.org \
--cc=Andrej.Borsenkow@mow.siemens.ru \
--cc=zsh-workers@sunsite.dk \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.vuxu.org/mirror/zsh/
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).