From: Iain Sandoe Date: Sun, 28 Mar 2021 13:48:17 +0000 (+0100) Subject: Darwin: Handle the -rpath command line option. X-Git-Tag: basepoints/gcc-13~5309 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=15bdae016654f63a36e49a37c9d26282bebb1da9;p=thirdparty%2Fgcc.git Darwin: Handle the -rpath command line option. This handles the command line '-rpath' option by passing it through to the static linker. Signed-off-by: Iain Sandoe gcc/ChangeLog: * config.gcc: Include rpath.opt for Darwin. * config/darwin.h (DRIVER_SELF_SPECS): Handle -rpath. --- diff --git a/gcc/config.gcc b/gcc/config.gcc index d9bfbfdc0d29..eb232df6df42 100644 --- a/gcc/config.gcc +++ b/gcc/config.gcc @@ -700,7 +700,7 @@ case ${target} in tm_file="${tm_file} ${cpu_type}/darwin.h" tm_p_file="${tm_p_file} darwin-protos.h" target_gtfiles="$target_gtfiles \$(srcdir)/config/darwin.c" - extra_options="${extra_options} darwin.opt" + extra_options="${extra_options} rpath.opt darwin.opt" c_target_objs="${c_target_objs} darwin-c.o" cxx_target_objs="${cxx_target_objs} darwin-c.o" d_target_objs="${d_target_objs} darwin-d.o" diff --git a/gcc/config/darwin.h b/gcc/config/darwin.h index 20d6b1e9c058..b1be561e854a 100644 --- a/gcc/config/darwin.h +++ b/gcc/config/darwin.h @@ -132,6 +132,7 @@ extern GTY(()) int darwin_ms_struct; "%{gsplit-dwarf:%ngsplit-dwarf is not supported on this platform} \ %