From b82ae19b91db32b12f0c0afe1a478f9d4caa6497 Mon Sep 17 00:00:00 2001 From: Bernhard Schommer Date: Wed, 18 Jan 2017 12:11:46 +0100 Subject: Use quoted strings. Instead of escaping all newlines etc for the help options use quoted strings. Bug 19872 --- driver/Linker.ml | 39 +++++++++++++++++++++------------------ 1 file changed, 21 insertions(+), 18 deletions(-) (limited to 'driver/Linker.ml') diff --git a/driver/Linker.ml b/driver/Linker.ml index 2f767023..5e14cfd4 100644 --- a/driver/Linker.ml +++ b/driver/Linker.ml @@ -35,27 +35,30 @@ let linker exe_name files = let gnu_linker_help = -" -nostartfiles Do not use the standard system startup files when\n\ -\ linking\n\ -\ -nodefaultlibs Do not use the standard system libraries when\n\ -\ linking\n\ -\ -nostdlib Do not use the standard system startup files or\n\ -\ libraries when linking\n" +{| -nostartfiles Do not use the standard system startup files when + linking + -nodefaultlibs Do not use the standard system libraries when + linking + -nostdlib Do not use the standard system startup files or + libraries when linking +|} let linker_help = -"Linking options:\n\ -\ -l Link library \n\ -\ -L Add to search path for libraries\n" ^ +{|Linking options: + -l Link library + -L Add to search path for libraries +|} ^ (if gnu_system then gnu_linker_help else "") ^ -" -s Remove all symbol table and relocation information from the\n\ -\ executable\n\ -\ -static Prevent linking with the shared libraries\n\ -\ -T Use as linker command file\n\ -\ -Wl, Pass option to the linker\n\ -\ -WUl, Pass option to the gcc or dcc used for linking\n\ -\ -Xlinker Pass as an option to the linker\n\ -\ -u Pretend the symbol is undefined to force linking of\n\ -\ library modules to define it.\n" +{| -s Remove all symbol table and relocation information from the + executable + -static Prevent linking with the shared libraries + -T Use as linker command file + -Wl, Pass option to the linker + -WUl, Pass option to the gcc or dcc used for linking + -Xlinker Pass as an option to the linker + -u Pretend the symbol is undefined to force linking of + library modules to define it. +|} let linker_actions = [ Prefix "-l", Self push_linker_arg; -- cgit