Browse Source

[1439] -z now added for Solaris

Dima Volodin 13 years ago
parent
commit
c789138250
1 changed files with 2 additions and 0 deletions
  1. 2 0
      configure.ac

+ 2 - 0
configure.ac

@@ -96,6 +96,8 @@ case "$host" in
 	# Solaris requires special definitions to get some standard libraries
 	# (e.g. getopt(3)) available with common used header files.
 	CPPFLAGS="$CPPFLAGS -D_XPG4_2 -D__EXTENSIONS__"
+	# "now" binding is necessary to prevent deadlocks in C++ static initialization code
+	LDFLAGS="$LDFLAGS -z now"
 	;;
 *-apple-darwin*)
 	# libtool doesn't work perfectly with Darwin: libtool embeds the