Fix AOT-on-install on ARM
Former-commit-id: 3176827268fb94cd12395aef6d8b3eefb1f2cb80
This commit is contained in:
parent
372bfe48fb
commit
2ff7594f46
2
debian/postinst-monoaot
vendored
2
debian/postinst-monoaot
vendored
@ -1,6 +1,6 @@
|
||||
if [ "$1" = "configure" ]
|
||||
then
|
||||
MONOARCH=`mono --version | grep Architecture | sed 's/.*: //'`
|
||||
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
|
||||
fi
|
||||
|
2
debian/prerm-monoaot
vendored
2
debian/prerm-monoaot
vendored
@ -1 +1 @@
|
||||
rm -f /usr/lib/mono/aot-cache/`mono --version | grep Architecture | sed 's/.*: //'`/`basename #FILE#`
|
||||
rm -f /usr/lib/mono/aot-cache/`mono --version | grep Architecture | sed 's/.*: //' | sed 's/el,.*//'`/`basename #FILE#`
|
||||
|
Loading…
x
Reference in New Issue
Block a user