]> git.ipfire.org Git - thirdparty/libtool.git/commitdiff
libtool: support -Zxxx options used on OS/2.
authorKO Myung-Hun <komh@chollian.net>
Tue, 4 Nov 2014 11:19:08 +0000 (11:19 +0000)
committerGary V. Vaughan <gary@gnu.org>
Tue, 4 Nov 2014 15:04:07 +0000 (15:04 +0000)
* build-aux/ltmain.in (func_mode_link): Add -Z* case, treating
them specially on os2 only.

Signed-off-by: Gary V. Vaughan <gary@gnu.org>
build-aux/ltmain.in

index e216611fd132c5ce0d6a95f55fc227d998bda2c1..adcce2a7df6b422acb5b5a9f633cfbff6e7eca8a 100644 (file)
@@ -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"