Enable build for FreeBSD (part 1/2)

Adopted from Michael Beer -- GH pull-request #232 with minor changes:

*   rebased on master,
*   removed trailing whitespace,
*   don't explicitly change saved configuration defaults (wscript)
*   moved sys/wait (WNOHANG) to header include
*   separate changes in GUI and lib
This commit is contained in:
Robin Gareus 2016-06-26 16:43:07 +02:00
parent e37b250d4d
commit 86763cba90
10 changed files with 26 additions and 7 deletions

View file

@ -2,6 +2,8 @@
from waflib.extras import autowaf as autowaf
from waflib import Options
import os
import re
import sys
# Mandatory variables
top = '.'
@ -19,5 +21,6 @@ def build(bld):
obj.source = [ 'abicheck.c' ]
obj.target = 'gcc-glibmm-abi-check'
obj.name = 'gcc-glibmm-abi-check'
obj.lib = 'dl'
if re.search ("freebsd", sys.platform) == None:
obj.lib = 'dl'
obj.install_path = None