comparison scripts/miscellaneous/mkoctfile.m @ 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 2090995ca588
children 00fbb05f099c
comparison
equal deleted inserted replaced
12661:9f91ca870f91 12662:2c54fde0f397
49 ## 49 ##
50 ## @item -R DIR 50 ## @item -R DIR
51 ## Add the run-time path to the link command. 51 ## Add the run-time path to the link command.
52 ## 52 ##
53 ## @item -Wl,@dots{} 53 ## @item -Wl,@dots{}
54 ## Pass flags though the linker like "-Wl,-rpath=@dots{}". 54 ## Pass flags through the linker e.g. "-Wl,-rpath=@dots{}".
55 ## The quotes are needed since commas are interpreted as command 55 ## The quotes are needed since commas are interpreted as command
56 ## separators. 56 ## separators.
57 ## 57 ##
58 ## @item -W@dots{} 58 ## @item -W,@dots{}
59 ## Pass flags though the compiler like "-Wa,OPTION". 59 ## Pass flags through the compiler, e.g. "-W,-O2". The quotes are needed
60 ## since commas are interpreted as command separators.
60 ## 61 ##
61 ## @item -c 62 ## @item -c
62 ## Compile but do not link. 63 ## Compile but do not link.
63 ## 64 ##
64 ## @item -g 65 ## @item -g