X-Git-Url: https://git.stg.codes/stg.git/blobdiff_plain/d2b05df9aed6362e0e9f560d610108aaf3acdd19..9d4423c1adf360b1aa1503b2addcf3c1228cec7a:/projects/sgconf/build diff --git a/projects/sgconf/build b/projects/sgconf/build index 47706a94..d7b72363 100755 --- a/projects/sgconf/build +++ b/projects/sgconf/build @@ -51,6 +51,13 @@ then MAKE="gmake" fi +if [ "$sys" = "Darwin" ] +then + OS=darwin + ETC_DIR="./inst/freebsd/etc/stargazer" + MAKE="gmake" +fi + if [ "$OS" = "unknown" ] then printf "#############################################################################\n" @@ -77,12 +84,18 @@ else then DEFS="$DEFS -DFREE_BSD" else - DEFS="$DEFS -DFREE_BSD5" if [ "$OS" = "bsd7" ] then + DEFS="$DEFS -DFREE_BSD5" LIB_THREAD=-lpthread else - LIB_THREAD=-lc_r + if [ "$OS" == "darwin" ] + then + DEFS="$DEFS -DDARWIN" + LIB_THREAD=-lpthread + else + LIB_THREAD=-lc_r + fi fi fi fi