From b6c0b8c9ff3dc85f1e2841e3a88c1569d09584f3 Mon Sep 17 00:00:00 2001 From: "Christoph M. Wintersteiger" Date: Mon, 7 Apr 2014 16:09:22 +0100 Subject: [PATCH] Compilation fix for FreeBSD --- scripts/mk_util.py | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/scripts/mk_util.py b/scripts/mk_util.py index 883492614..89cabe87e 100644 --- a/scripts/mk_util.py +++ b/scripts/mk_util.py @@ -54,6 +54,7 @@ CPP_COMPONENT='cpp' IS_WINDOWS=False IS_LINUX=False IS_OSX=False +IS_FREEBSD=False VERBOSE=True DEBUG_MODE=False SHOW_CPPS = True @@ -98,6 +99,9 @@ def is_windows(): def is_linux(): return IS_LINUX +def is_freebsd(): + return IS_FREEBSD + def is_osx(): return IS_OSX @@ -426,6 +430,8 @@ elif os.name == 'posix': IS_OSX=True elif os.uname()[0] == 'Linux': IS_LINUX=True + elif os.uname()[0] == 'FreeBSD': + IS_FREEBSD=True def display_help(exit_code): print("mk_make.py: Z3 Makefile generator\n") @@ -1181,6 +1187,8 @@ class JavaDLLComponent(Component): t = t.replace('PLATFORM', 'darwin') elif IS_LINUX: t = t.replace('PLATFORM', 'linux') + elif IS_FREEBSD: + t = t.replace('PLATFORM', 'freebsd') else: t = t.replace('PLATFORM', 'win32') out.write(t)