Commit cb882fc9 authored by Alec Theriault's avatar Alec Theriault Committed by Ben Gamari

Require 'libdw' for '--enable-dwarf-unwind'

This causes './configure --enable-dwarf-unwind' to exit with a helpful
error message when 'libdw' cannot be found (compared to the previous
behaviour of silently pretending the user hadn't requested DWARF support
at all).

Test Plan: ./configure --enable-dwarf-unwind # on systems with/without

Reviewers: bgamari, nh2

Reviewed By: nh2

Subscribers: nh2, rwbarton, erikd, carter

GHC Trac Issues: #15968

Differential Revision:
parent bd808316
......@@ -1248,7 +1248,9 @@ USE_LIBDW=0
[Enable DWARF unwinding support in the runtime system via elfutils' libdw [default=no]])],
[AC_CHECK_LIB(dw, dwfl_attach_state, [UseLibdw=YES], [UseLibdw=NO])],
[AC_CHECK_LIB(dw, dwfl_attach_state,
[AC_MSG_ERROR([Cannot find system libdw (required by --enable-dwarf-unwind)])])]
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment