mirror of
git://git.savannah.gnu.org/libtool.git
synced 2024-11-21 01:40:57 +08:00
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 <gary@gnu.org>
This commit is contained in:
parent
61b62ee8dc
commit
2ed6718f4e
@ -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"
|
||||
|
Loading…
Reference in New Issue
Block a user