From eef6b108cf002873fd292ce6a41509c6bf2266ef Mon Sep 17 00:00:00 2001 From: Achim Gsell Date: Fri, 14 Nov 2014 13:20:40 +0100 Subject: [PATCH] Modules.build: build without X support --- scripts/Modules.build | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/scripts/Modules.build b/scripts/Modules.build index 8650076..c20212a 100755 --- a/scripts/Modules.build +++ b/scripts/Modules.build @@ -7,11 +7,21 @@ TCL_DIR="${PSI_PREFIX}/Programming/Tcl/${TCL_VERSION}" PATH="${TCL_DIR}/bin:${PATH}" +case ${OS} in +Linux ) + declare -x LIBS="-lz -lpthread" + ;; +Darwin ) + declare -x LIBS="-lz -framework CoreFoundation" + ;; +esac + function em.configure() { - CPPFLAGS="-DUSE_INTERP_ERRORLINE" LIBS="-lz -lpthread" "${MODULE_SRCDIR}"/configure \ + CPPFLAGS="-DUSE_INTERP_ERRORLINE" "${MODULE_SRCDIR}"/configure \ --prefix="${PSI_PREFIX}/${MODULE_FAMILY}" \ --with-module-path="${PSI_PREFIX}/${PSI_MODULES_ROOT}" \ --with-tcl="${TCL_DIR}/lib" \ + --without-x \ || exit 1 } # fake module command @@ -23,5 +33,5 @@ module() { declare -rx CC=gcc em.add_to_family 'Tools' -em.set_runtime_dependencies "Tcl/${TCL_VERSION}" +em.set_build_dependencies "Tcl/${TCL_VERSION}" em.make_all