[waf] Don't compile profiler.c or link libexecinfo on FreeBSD when not using --with-profiler

personal/stbuehler/wip
Thomas Porzelt 13 years ago
parent 5646b353ea
commit 91cc6e06bb

@ -16,8 +16,6 @@ def configure(conf):
def build(bld):
libs = ['glib', 'gthread', 'gmodule', 'ev']
if sys.platform.startswith('freebsd'):
libs += ['execinfo']
source = '''
actions.c
@ -47,7 +45,6 @@ def build(bld):
options.c
plugin.c
plugin_core.c
profiler.c
request.c
response.c
server.c
@ -59,6 +56,13 @@ def build(bld):
worker.c
'''
if bld.env['WITH_PROFILER'] == 1:
if sys.platform.startswith('freebsd'):
libs += ['execinfo']
source += '''
profiler.c
'''
if bld.env['USE_LUA'] == 1:
libs += ['lua']
source += '''

Loading…
Cancel
Save