Skip to content

Commit

Permalink
Link to libexecinfo on BSD always, not just in a debug compiler (#2916)
Browse files Browse the repository at this point in the history
#2826 restricted -lexecinfo to debug compilers (not even to building something in debug mode).
This doesn't make much sense. I'm not sure why ordinary builds can succeed without -lexecinfo,
but bitcode-runtime builds can't. Either way, if it's always included on non-glibc-Linux, it should
always be included on BSD.
  • Loading branch information
valpackett authored and jemc committed Nov 2, 2018
1 parent 81ba52c commit e3ac3ef
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/libponyc/codegen/genexe.c
Original file line number Diff line number Diff line change
Expand Up @@ -348,7 +348,7 @@ static bool link_exe(compile_t* c, ast_t* program,
#endif
const char* lexecinfo =
#if (defined(PLATFORM_IS_LINUX) && !defined(__GLIBC__)) || \
(defined(PLATFORM_IS_BSD) && defined(DEBUG))
defined(PLATFORM_IS_BSD)
"-lexecinfo";
#else
"";
Expand Down

0 comments on commit e3ac3ef

Please sign in to comment.