mirror of
https://github.com/fish-shell/fish-shell
synced 2025-01-13 13:39:02 +00:00
configure: use feature detection for -rdynamic
Fixes the Cygwin build, works on OS X. Work on #170.
This commit is contained in:
parent
7d94b7fd1b
commit
8db162e048
1 changed files with 12 additions and 3 deletions
15
configure.ac
15
configure.ac
|
@ -210,9 +210,18 @@ CXXFLAGS="$CXXFLAGS -Wall -Wno-sign-compare"
|
||||||
# This is needed in order to get the really cool backtraces on Linux
|
# This is needed in order to get the really cool backtraces on Linux
|
||||||
#
|
#
|
||||||
|
|
||||||
if test `uname` != "Darwin"; then
|
AC_MSG_CHECKING([for -rdynamic linker flag])
|
||||||
LDFLAGS_FISH="$LDFLAGS_FISH -rdynamic"
|
prev_LDFLAGS="$LDFLAGS"
|
||||||
fi
|
LDFLAGS="$LDFLAGS -rdynamic"
|
||||||
|
AC_LINK_IFELSE([AC_LANG_PROGRAM([[]],[[]])],
|
||||||
|
[
|
||||||
|
AC_MSG_RESULT([yes])
|
||||||
|
LDFLAGS_FISH="$LDFLAGS_FISH -rdynamic"
|
||||||
|
], [
|
||||||
|
AC_MSG_RESULT([no])
|
||||||
|
LDFLAGS_FISH="$LDFLAGS_FISH"
|
||||||
|
])
|
||||||
|
LDFLAGS="$prev_LDFLAGS"
|
||||||
|
|
||||||
#
|
#
|
||||||
# On Cygwin, we need to add some flags for ncurses.
|
# On Cygwin, we need to add some flags for ncurses.
|
||||||
|
|
Loading…
Reference in a new issue