Ignore:
Timestamp:
27/02/2011 23:33:01 (15 months ago)
Author:
chris
Message:

Fix build on solaris/gcc by checking whether -rdynamic is supported or not.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • box/trunk/configure.ac

    r2860 r2866  
    2727  AC_SUBST([CXXFLAGS_STRICT], ['-Wall -Wundef']) 
    2828 
    29   # Use -rdynamic if we have gcc, but not mingw. This is needed for backtrace 
    30   case $target_os in 
    31     mingw*) ;; 
    32     *) AC_SUBST([LDADD_RDYNAMIC], ['-rdynamic']) ;; 
    33   esac 
     29  # Check whether gcc supports -rdynamic, thanks to Steve Ellcey 
     30  # [http://readlist.com/lists/gcc.gnu.org/gcc/6/31502.html] 
     31  # This is needed to get symbols in backtraces. 
     32  # Note that this apparently fails on HP-UX 
     33  LDFLAGS="$LDFLAGS -rdynamic" 
     34  AC_MSG_CHECKING([whether gcc accepts -rdynamic]) 
     35  AC_TRY_LINK([], [return 0;], 
     36    [AC_MSG_RESULT([yes]); have_rdynamic=yes], 
     37    [AC_MSG_RESULT([no])]) 
     38  if test x"$have_rdynamic" = x"yes" ; then 
     39    AC_SUBST([LDADD_RDYNAMIC], ['-rdynamic']) 
     40  fi 
    3441fi 
    3542 
Note: See TracChangeset for help on using the changeset viewer.