summaryrefslogtreecommitdiff
path: root/debian/patches/solaris-shared.patch
blob: 111a978835cc70bdacc86ada337df39c623a9d31 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
Index: zsh/configure.ac
===================================================================
--- zsh.orig/configure.ac	2014-01-05 22:24:59.000000000 +0400
+++ zsh/configure.ac	2014-02-06 19:16:41.485449834 +0400
@@ -2769,7 +2769,8 @@
     sunos*)       DLLDFLAGS="${DLLDFLAGS=-assert nodefinitions}" ;;
     sysv4*|esix*) DLLDFLAGS="${DLLDFLAGS=-G $ldflags}" ;;
     aix*)         DLLDFLAGS="${DLLDFLAGS=-G -bexpall -lc}" ;;
-    solaris*|sysv4*|esix*) DLLDFLAGS="${DLLDFLAGS=-G}" ;;
+    solaris*) DLLDFLAGS="${DLLDFLAGS=-shared}" ;;
+    sysv4*|esix*) DLLDFLAGS="${DLLDFLAGS=-G}" ;;
     darwin*)      DLLDFLAGS="${DLLDFLAGS=-bundle -flat_namespace -undefined suppress}" ;;
     beos*|haiku*) DLLDFLAGS="${DLLDFLAGS=-nostart}" ;;
     openbsd*)
@@ -2907,7 +2908,6 @@
 
 if test "x$dynamic" = xyes; then
   zsh_SHARED_VARIABLE([environ], [char **])
-  test "$zsh_cv_shared_environ" = yes || dynamic=no
   if test "$ac_cv_func_tgetent" = yes; then
     zsh_SHARED_FUNCTION([tgetent])
   fi