X-Git-Url: https://git.stg.codes/stg.git/blobdiff_plain/471a8ddb278cb5621e36a6c45e450d40580e50fd..ce23bada2111a637074629161268ce1039d28a58:/projects/sgauthstress/build diff --git a/projects/sgauthstress/build b/projects/sgauthstress/build index dae35b74..125061d9 100755 --- a/projects/sgauthstress/build +++ b/projects/sgauthstress/build @@ -55,7 +55,7 @@ if [ "$sys" = "Darwin" ] then OS=darwin ETC_DIR="./inst/freebsd/etc/stargazer" - MAKE="gmake" + MAKE="make" CFLAGS="$CFLAGS -I/opt/local/include" CXXFLAGS="$CFLAGS -I/opt/local/include" LDFLAGS="$LDFLAGS -L/opt/local/lib" @@ -92,12 +92,18 @@ else DEFS="$DEFS -DFREE_BSD" LIB_THREAD=-lc_r 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