mirror of
git://git.savannah.gnu.org/libtool.git
synced 2025-01-30 14:30:15 +08:00
* ltmain.in (-XCClinker): New flag passes a linking option
directly to the compiler driver without appending ${wl}.
This commit is contained in:
parent
49cf16560b
commit
4102e43461
@ -1,3 +1,8 @@
|
|||||||
|
2002-10-25 Robert Boehne <rboehne@gnu.org>
|
||||||
|
|
||||||
|
* ltmain.in (-XCClinker): New flag passes a linking option
|
||||||
|
directly to the compiler driver without appending ${wl}.
|
||||||
|
|
||||||
2002-10-25 Gary V. Vaughan <gary@gnu.org>
|
2002-10-25 Gary V. Vaughan <gary@gnu.org>
|
||||||
|
|
||||||
* README-alpha: Add some release not templates for inspiration and
|
* README-alpha: Add some release not templates for inspiration and
|
||||||
|
@ -1144,10 +1144,11 @@ suffix (e.g. @samp{.c} for C source code) with the library object suffix,
|
|||||||
@samp{.lo}.
|
@samp{.lo}.
|
||||||
|
|
||||||
If shared libraries are being built, any necessary PIC generation flags
|
If shared libraries are being built, any necessary PIC generation flags
|
||||||
are substituted into the compilation command.
|
are substituted into the compilation command. You can pass link specific
|
||||||
You can pass compiler and linker specific flags using @samp{-Wc,@var{flag}}
|
flags to the compiler driver using @samp{-XCClinker @var{flag}} or pass
|
||||||
and @samp{-Xcompiler @var{flag}} or @samp{-Wl,@var{flag}} and
|
linker flags with @samp{-Wl,@var{flag}} and @samp{-Xlinker @var{flag}}.
|
||||||
@samp{-Xlinker @var{flag}}, respectively.
|
You can also pass compile specific flags using @samp{-Wc,@var{flag}}
|
||||||
|
and @samp{-Xcompiler @var{flag}}.
|
||||||
|
|
||||||
If the @samp{-static} option is given, then a @samp{.o} file is built,
|
If the @samp{-static} option is given, then a @samp{.o} file is built,
|
||||||
even if libtool was configured with @samp{--disable-static}.
|
even if libtool was configured with @samp{--disable-static}.
|
||||||
@ -1298,6 +1299,9 @@ release information, rather see the @samp{-release} flag.
|
|||||||
@item -Wl,@var{flag}
|
@item -Wl,@var{flag}
|
||||||
@itemx -Xlinker @var{flag}
|
@itemx -Xlinker @var{flag}
|
||||||
Pass a linker specific flag directly to the linker.
|
Pass a linker specific flag directly to the linker.
|
||||||
|
|
||||||
|
@item -XCClinker @var{flag}
|
||||||
|
Pass a link specific flag to the compiler driver (@var{CC}) during linking.
|
||||||
@end table
|
@end table
|
||||||
|
|
||||||
If the @var{output-file} ends in @samp{.la}, then a libtool library is
|
If the @var{output-file} ends in @samp{.la}, then a libtool library is
|
||||||
|
13
ltmain.in
13
ltmain.in
@ -1089,6 +1089,14 @@ EOF
|
|||||||
finalize_command="$finalize_command $wl$qarg"
|
finalize_command="$finalize_command $wl$qarg"
|
||||||
continue
|
continue
|
||||||
;;
|
;;
|
||||||
|
xcclinker)
|
||||||
|
linker_flags="$linker_flags $qarg"
|
||||||
|
compiler_flags="$compiler_flags $qarg"
|
||||||
|
prev=
|
||||||
|
compile_command="$compile_command $qarg"
|
||||||
|
finalize_command="$finalize_command $qarg"
|
||||||
|
continue
|
||||||
|
;;
|
||||||
*)
|
*)
|
||||||
eval "$prev=\"\$arg\""
|
eval "$prev=\"\$arg\""
|
||||||
prev=
|
prev=
|
||||||
@ -1357,6 +1365,11 @@ EOF
|
|||||||
continue
|
continue
|
||||||
;;
|
;;
|
||||||
|
|
||||||
|
-XCClinker)
|
||||||
|
prev=xcclinker
|
||||||
|
continue
|
||||||
|
;;
|
||||||
|
|
||||||
# Some other compiler flag.
|
# Some other compiler flag.
|
||||||
-* | +*)
|
-* | +*)
|
||||||
# Unknown arguments in both finalize_command and compile_command need
|
# Unknown arguments in both finalize_command and compile_command need
|
||||||
|
Loading…
Reference in New Issue
Block a user