summaryrefslogtreecommitdiff
path: root/tools/gccabicheck
diff options
context:
space:
mode:
authorRobin Gareus <robin@gareus.org>2016-06-26 16:43:07 +0200
committerRobin Gareus <robin@gareus.org>2016-06-26 16:43:07 +0200
commit86763cba906dba3fdbc0c99a42a3f7123eaa380d (patch)
tree2d682830df4637d1b75fab880ec0f2ce98af6b13 /tools/gccabicheck
parente37b250d4d3d483e708db60ac9774342fd4b9700 (diff)
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
Diffstat (limited to 'tools/gccabicheck')
-rw-r--r--tools/gccabicheck/wscript5
1 files changed, 4 insertions, 1 deletions
diff --git a/tools/gccabicheck/wscript b/tools/gccabicheck/wscript
index ecef5c6aa7..afdb99f506 100644
--- a/tools/gccabicheck/wscript
+++ b/tools/gccabicheck/wscript
@@ -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