scripts: fixed macos

This commit is contained in:
mattias 2019-04-05 14:17:18 +00:00
parent 585d0a398f
commit f4f743c62f

View File

@ -98,11 +98,14 @@ FPCCPU=$($FPC -iTP)
case "$OSTYPE" in
linux*)
SNAPSHOTOS=linux
LIBEXT=so
;;
darwin*)
SNAPSHOTOS=macos
LIBEXT=dylib
;;
*) SNAPSHOTOS=unknown
LIBEXT=dll
;;
esac
#
@ -177,7 +180,9 @@ doStrip $BINDIR/pas2js
header Build libpas2js in $COMPDIR
cd "$COMPDIR"
doCompile -Fu"$UNITPATH" $OPTS $LIBOPT -FE$BINDIR pas2jslib.pp
doStrip $BINDIR/libpas2jslib.so
if [ "$OSTYPE" ne "darwin" ]; then
doStrip $BINDIR/libpas2jslib.$LIBEXT
fi
# compileserver
if [ ! -z "$FPCVER30" ]; then