Change AOT flags used at install time, to avoid segfault

Former-commit-id: 021dd4cb8d70ab81f8d4216c70ed7affc0acfb22
This commit is contained in:
Jo Shields 2015-04-08 12:49:16 +01:00
parent 5165c9906e
commit 9dbd206e43

View File

@ -2,5 +2,5 @@ if [ "$1" = "configure" ]
then
MONOARCH=`mono --version | grep Architecture | sed 's/.*: //' | sed 's/el,.*//'`
mkdir -p /usr/lib/mono/aot-cache/${MONOARCH}/
/usr/bin/mono --aot=outfile=/usr/lib/mono/aot-cache/${MONOARCH}/`basename #FILE#.so` -O=all,shared #FILE# > /dev/null 2>&1 || true
/usr/bin/mono --aot=outfile=/usr/lib/mono/aot-cache/${MONOARCH}/`basename #FILE#.so` -O=all #FILE# > /dev/null 2>&1 || true
fi