Skip to content
This repository has been archived by the owner on Sep 15, 2022. It is now read-only.

Commit

Permalink
Don't use --as-needed on Solaris.
Browse files Browse the repository at this point in the history
As /usr/bin/ld on illumos doesn't (yet) support --as-needed, this
patch to acinclude.m4 will suppress the LDFLAGS -Wl,-as-needed
passed when gcc is used as the compiler in the "bash bootstrap" command.

This patch assumes that all gcc variants running on illumos (gcc3 and
gcc4) are configured with --without-gnu-ld --with-ld=/usr/bin/ld,
which after brief research, seems typically the case.
  • Loading branch information
Richard PALO authored and dpage committed Jul 19, 2013
1 parent 868b76c commit 7eec4c4
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion acinclude.m4
Expand Up @@ -684,7 +684,9 @@ AC_DEFUN([SETUP_POSTGRESQL],
case "${host}" in
*-apple-darwin*)
;;
*solaris*)
LDFLAGS="$LDFLAGS"
;;
*)
LDFLAGS="$LDFLAGS -Wl,-as-needed"
;;
Expand Down

0 comments on commit 7eec4c4

Please sign in to comment.