mirror of
https://github.com/clearlinux/uwsgi.git
synced 2026-09-06 13:41:28 +00:00
added execinfo support for FreeBSD
This commit is contained in:
@@ -1104,7 +1104,7 @@ void uwsgi_plugins_atexit(void) {
|
||||
|
||||
void uwsgi_backtrace(int depth) {
|
||||
|
||||
#if defined(__linux__) || defined(__APPLE__)
|
||||
#if defined(__linux__) || defined(__APPLE__) || defined(UWSGI_HAS_EXECINFO)
|
||||
|
||||
#include <execinfo.h>
|
||||
|
||||
|
||||
@@ -383,6 +383,11 @@ class uConf(object):
|
||||
if self.has_include('ifaddrs.h'):
|
||||
self.cflags.append('-DUWSGI_HAS_IFADDRS')
|
||||
|
||||
if uwsgi_os == 'FreeBSD':
|
||||
if self.has_include('execinfo.h') or os.path.exists('/usr/local/include/execinfo.h'):
|
||||
self.cflags.append('-DUWSGI_HAS_EXECINFO')
|
||||
self.libs.append('-lexecinfo')
|
||||
|
||||
if uwsgi_os == 'SunOS':
|
||||
self.libs.append('-lsendfile')
|
||||
self.gcc_list.append('lib/sun_fixes')
|
||||
|
||||
Reference in New Issue
Block a user