diff options
Diffstat (limited to 'matlab-support.install')
-rw-r--r-- | matlab-support.install | 19 |
1 files changed, 11 insertions, 8 deletions
diff --git a/matlab-support.install b/matlab-support.install index b48c0d294cfc..975835e23a18 100644 --- a/matlab-support.install +++ b/matlab-support.install @@ -7,16 +7,19 @@ post_install() { } post_upgrade() { bin_path=$(dirname $(readlink -f $(which matlab))) - echo 'Patching MATLAB to use gcc-4.7' - sed -i "s/CC='gcc'$/CC='gcc-4.7'/g" "$bin_path/mexopts.sh" - sed -i "s/CXX='g++'$/CXX='g++-4.7'/g" "$bin_path/mexopts.sh" - sed -i "s/FC='gfortran'$/FC='gfortran-4.7'/g" "$bin_path/mexopts.sh" + echo 'Patching MATLAB to use gcc-4.9' + sed -i "s/CC='gcc-4.7'$/CC='gcc-4.9'/g" "$bin_path/mexopts.sh" + sed -i "s/CXX='g++-4.7'$/CXX='g++-4.9'/g" "$bin_path/mexopts.sh" + sed -i "s/FC='gfortran-4.7'$/FC='gfortran-4.9'/g" "$bin_path/mexopts.sh" + sed -i "s/CC='gcc'$/CC='gcc-4.9'/g" "$bin_path/mexopts.sh" + sed -i "s/CXX='g++'$/CXX='g++-4.9'/g" "$bin_path/mexopts.sh" + sed -i "s/FC='gfortran'$/FC='gfortran-4.9'/g" "$bin_path/mexopts.sh" } post_remove() { bin_path=$(dirname $(readlink -f $(which matlab))) - echo 'Removing gcc-4.7 patch' - sed -i "s/CC='gcc-4.7'$/CC='gcc'/g" "$bin_path/mexopts.sh" - sed -i "s/CXX='g++-4.7'$/CXX='g++'/g" "$bin_path/mexopts.sh" - sed -i "s/FC='gfortran-4.7'$/FC='gfortran'/g" "$bin_path/mexopts.sh" + echo 'Removing gcc-4.9 patch' + sed -i "s/CC='gcc-4.9'$/CC='gcc'/g" "$bin_path/mexopts.sh" + sed -i "s/CXX='g++-4.9'$/CXX='g++'/g" "$bin_path/mexopts.sh" + sed -i "s/FC='gfortran-4.9'$/FC='gfortran'/g" "$bin_path/mexopts.sh" } |