linux-packaging-mono/debian/postinst-monoaot
Jo Shields 9dbd206e43 Change AOT flags used at install time, to avoid segfault
Former-commit-id: 021dd4cb8d70ab81f8d4216c70ed7affc0acfb22
2015-04-08 12:50:27 +01:00

7 lines
289 B
Plaintext

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 #FILE# > /dev/null 2>&1 || true
fi