Skip to content

Commit

Permalink
build: detect Solaris linker
Browse files Browse the repository at this point in the history
  • Loading branch information
jengelh committed Dec 30, 2023
1 parent 7393c64 commit 0fa8be1
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 2 deletions.
5 changes: 5 additions & 0 deletions Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,12 @@ noinst_LTLIBRARIES = libphp_mapi.la
pkglibexec_PROGRAMS = cgkrepair delivery delivery-queue event gromox-snapshot http imap midb pop3 timer zcore
pkglib_LTLIBRARIES = ${exchange_plugins} ${mta_plugins} ${mra_plugins} libmapi4zf.la
default_sym = ${srcdir}/default.sym
if WITH_GNU_LD
default_SYFLAGS = -Wl,--version-script=${default_sym}
endif
if WITH_SUN_LD
default_SYFLAGS = -Wl,-M,${default_sym}
endif
plugin_LDFLAGS = -avoid-version -module ${default_SYFLAGS${NO_VSYM}}
pamlibdir = ${libdir}/security
if HAVE_PAM
Expand Down
3 changes: 3 additions & 0 deletions configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@ LT_INIT([disable-static])
m4_ifdef([AM_SILENT_RULES],[AM_SILENT_RULES([yes])])

AC_PROG_CXX
AM_CONDITIONAL([WITH_GNU_LD], [test "$with_gnu_ld" = yes])
AS_IF([test -n "$LD" && $LD -z help >/dev/null 2>/dev/null], [with_sun_ld=yes], [with_sun_ld=no])
AM_CONDITIONAL([WITH_SUN_LD], [test "$with_sun_ld" = yes])

saved_CPPFLAGS="$CPPFLAGS"
saved_CFLAGS="$CFLAGS"
Expand Down
4 changes: 2 additions & 2 deletions doc/install.rst
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@ dependencies are needed:
* libvmime >= 0.9.2+git160 (commit c6904bd7cf03f6cca92cf0d15aec02e7850e0276)
* libxml2 (we use this for HTML parsing)
* libzstd >= 1.4
* MariaDB Connector/C or compatible
* OpenLDAP or similar headers
* MariaDB Connector/C or mariadb-client or compatible API
* OpenLDAP
* OpenSSL-compatible libssl
* OpenSSL-compatible libcrypto
(must have SHA-3 *if* libxxhash is not used)
Expand Down

0 comments on commit 0fa8be1

Please sign in to comment.