zsh-workers
 help / color / mirror / code / Atom feed
From: Ollivier Robert <roberto@keltia.freenix.fr>
To: zsh-workers@sunsite.auc.dk
Subject: PATCH: [3.1.6-pre2] Fix for dynamic linking under FreeBSD
Date: Mon, 19 Jul 1999 22:06:42 +0200	[thread overview]
Message-ID: <19990719220642.A15070@keltia.freenix.fr> (raw)

Here is a fix that should work for both older a.out systems and newer (3.x &
4.x) ELF FreeBSD systems.

--- configure.in.old	Mon Jul 19 21:49:19 1999
+++ configure.in	Mon Jul 19 21:51:38 1999
@@ -1187,7 +1187,7 @@
   fi
   case "$host_os" in
     hpux*)        DLLDFLAGS="${DLLDFLAGS=-b}" ;;
-    linux*|irix*|osf*) DLLDFLAGS="${DLLDFLAGS=-shared}" ;;
+    freebsd*|linux*|irix*|osf*) DLLDFLAGS="${DLLDFLAGS=-shared}" ;;
     sunos*)       DLLDFLAGS="${DLLDFLAGS=-assert nodefinitions}" ;;
     sysv4*|esix*) DLLDFLAGS="${DLLDFLAGS=-G $ldflags}" ;;
     netbsd*)      DLLDFLAGS="${DLLDFLAGS=${DLLDARG}-x -shared --whole-archive}" ;;
@@ -1196,7 +1196,7 @@
   esac
   case "$host" in
     *-hpux*)  EXTRA_LDFLAGS="${EXTRA_LDFLAGS=-Wl,-E}" ;;
-    *-linux*) EXTRA_LDFLAGS="${EXTRA_LDFLAGS=-rdynamic}" ;;
+    *-freebsd3*|*-freebsd4*|*-linux*) EXTRA_LDFLAGS="${EXTRA_LDFLAGS=-rdynamic}" ;;
     mips-sni-sysv4)
       #
       # unfortunately, we have different compilers


While I'm here, here is the size of the various modules under FreeBSD/ELF:

-rwxr-xr-x  1 roberto  wheel    8344 Jul 19 22:04 Src/Builtins/rlimits.so*
-rwxr-xr-x  1 roberto  wheel    4596 Jul 19 22:04 Src/Builtins/sched.so*
-rwxr-xr-x  1 roberto  wheel    2576 Jul 19 22:04 Src/Modules/cap.so*
-rwxr-xr-x  1 roberto  wheel    4416 Jul 19 22:04 Src/Modules/clone.so*
-rwxr-xr-x  1 roberto  wheel    5972 Jul 19 22:04 Src/Modules/example.so*
-rwxr-xr-x  1 roberto  wheel    9632 Jul 19 22:04 Src/Modules/files.so*
-rwxr-xr-x  1 roberto  wheel    5456 Jul 19 22:04 Src/Modules/mapfile.so*
-rwxr-xr-x  1 roberto  wheel    9728 Jul 19 22:04 Src/Modules/parameter.so*
-rwxr-xr-x  1 roberto  wheel    9028 Jul 19 22:04 Src/Modules/stat.so*
-rwxr-xr-x  1 roberto  wheel   26252 Jul 19 22:04 Src/Modules/zftp.so*
-rwxr-xr-x  1 roberto  wheel    9980 Jul 19 22:04 Src/Zle/comp1.so*
-rwxr-xr-x  1 roberto  wheel   30740 Jul 19 22:04 Src/Zle/compctl.so*
-rwxr-xr-x  1 roberto  wheel   18456 Jul 19 22:04 Src/Zle/complist.so*
-rwxr-xr-x  1 roberto  wheel    3136 Jul 19 22:04 Src/Zle/deltochar.so*
-rwxr-xr-x  1 roberto  wheel  210320 Jul 19 22:05 Src/Zle/zle.so*

-- 
Ollivier ROBERT -=- FreeBSD: The Power to Serve! -=- roberto@keltia.freenix.fr
The Postman hits! The Postman hits! You have new mail.


                 reply	other threads:[~1999-07-19 20:17 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=19990719220642.A15070@keltia.freenix.fr \
    --to=roberto@keltia.freenix.fr \
    --cc=zsh-workers@sunsite.auc.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).