Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

RE: AIX abd GCC



>
> >
> > Did you use DLLDFLAGS=-shared or it worked OOTB?
> >
> > Could you give exact configure invocation you used?
>
> Yes, that was the only trick I used..
>
> ..but it works also without it, OOTB.
>

You mean, it even correctly finds boolcodes & friends?

Anyway, after reading AIX ld docs I am not happy with how we are doing it.
We do not actually build shared libraries (meaning shareable code) so every
zsh instance gets own copy of every loaded module.

Timo, could you do me a favour, update CVS and try the following patch. Just
go into zsh dir and do

cvs up -dP

then apply the patch. This should produce better code ... I hope.

Or should we just leave it as is?

-andrej

Index: zshconfig.ac
===================================================================
RCS file: /cvsroot/zsh/zsh/zshconfig.ac,v
retrieving revision 1.8
diff -u -r1.8 zshconfig.ac
--- zshconfig.ac        2001/06/19 06:59:24     1.8
+++ zshconfig.ac        2001/06/27 14:32:38
@@ -1535,6 +1535,11 @@
   DL_EXT="${DL_EXT=so}"
   DLLD="${DLLD=$CC}"
   zsh_cv_func_dlsym_needs_underscore=no
+  if test -n "$GCC"; then
+    DLLDFLAGS=${DLLDFLAGS=-shared}
+  else
+    DLLDFLAGS=${DLLDFLAGS=-bM:SRE}
+  fi
   DLLDFLAGS=${DLLDFLAGS=}
   EXTRA_LDFLAGS=${EXTRA_LDFLAGS=}
   EXPOPT=${LDARG}-bE:



Messages sorted by: Reverse Date, Date, Thread, Author