From: KO Myung-Hun Date: Tue, 4 Nov 2014 11:19:08 +0000 (+0000) Subject: libtool: support -Zxxx options used on OS/2. X-Git-Tag: v2.4.4~25 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=2ed6718f4eb8ec3943afe301511addf66fe04f18;p=thirdparty%2Flibtool.git libtool: support -Zxxx options used on OS/2. * build-aux/ltmain.in (func_mode_link): Add -Z* case, treating them specially on os2 only. Signed-off-by: Gary V. Vaughan --- diff --git a/build-aux/ltmain.in b/build-aux/ltmain.in index e216611fd..adcce2a7d 100644 --- a/build-aux/ltmain.in +++ b/build-aux/ltmain.in @@ -5328,6 +5328,25 @@ func_mode_link () continue ;; + -Z*) + if test os2 = "`expr $host : '.*\(os2\)'`"; then + # OS/2 uses -Zxxx to specify OS/2-specific options + compiler_flags="$compiler_flags $arg" + func_append compile_command " $arg" + func_append finalize_command " $arg" + case $arg in + -Zlinker | -Zstack) + prev=xcompiler + ;; + esac + continue + else + # Otherwise treat like 'Some other compiler flag' below + func_quote_for_eval "$arg" + arg=$func_quote_for_eval_result + fi + ;; + # Some other compiler flag. -* | +*) func_quote_for_eval "$arg"