diff mkoctfile.in @ 12662:2c54fde0f397 stable

Fix passing compiler options to mkoctfile * mkoctfile.in: Only pass the part after -W to the compiler, plus add a comma for consistency with -Wl option. * mkoctfile.m: Document the change.
author Jordi Gutiérrez Hermoso <jordigh@gmail.com>
date Wed, 11 May 2011 00:23:46 -0500
parents 402456ba3f61
children
line wrap: on
line diff
--- a/mkoctfile.in
+++ b/mkoctfile.in
@@ -336,8 +336,8 @@
       incflags="$incflags -I."
       output_ext=".mex"
     ;;
-    -W*)
-      pass_on_options="$pass_on_options $1"
+    -W,*)
+      pass_on_options="$pass_on_options ${1:3}"
     ;;
     *)
       echo "mkoctfile: unrecognized argument $1" 1>&2