Skip to content

Commit 47b634a

Browse files
fxcoudertiains
authored andcommitted
Doc: document the new Darwin options
gcc/ChangeLog: * doc/invoke.texi: Document the new -nodefaultrpaths option. * doc/install.texi: Document the new --with-darwin-extra-rpath option.
1 parent a0673ec commit 47b634a

File tree

2 files changed

+15
-1
lines changed

2 files changed

+15
-1
lines changed

gcc/doc/install.texi

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1856,6 +1856,12 @@ particularly useful if you intend to use several versions of GCC in
18561856
parallel. The default is @samp{yes} for @samp{libada}, and @samp{no} for
18571857
the remaining libraries.
18581858

1859+
@item --with-darwin-extra-rpath
1860+
This is provided to allow distributions to add a single additional
1861+
runpath on Darwin / macOS systems. This allows for cases where the
1862+
installed GCC library directories are then symlinked to a common
1863+
directory outside of the GCC installation.
1864+
18591865
@item @anchor{WithAixSoname}--with-aix-soname=@samp{aix}, @samp{svr4} or @samp{both}
18601866
Traditional AIX shared library versioning (versioned @code{Shared Object}
18611867
files as members of unversioned @code{Archive Library} files named

gcc/doc/invoke.texi

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -926,7 +926,7 @@ Objective-C and Objective-C++ Dialects}.
926926
-iframework
927927
-image_base -init -install_name -keep_private_externs
928928
-multi_module -multiply_defined -multiply_defined_unused
929-
-noall_load -no_dead_strip_inits_and_terms
929+
-noall_load -no_dead_strip_inits_and_terms -nodefaultrpaths
930930
-nofixprebinding -nomultidefs -noprebind -noseglinkedit
931931
-pagezero_size -prebind -prebind_all_twolevel_modules
932932
-private_bundle -read_only_relocs -sectalign
@@ -24484,6 +24484,14 @@ an executable when linking, using the Darwin @file{libtool} command.
2448424484
This causes GCC's output file to have the @samp{ALL} subtype, instead of
2448524485
one controlled by the @option{-mcpu} or @option{-march} option.
2448624486

24487+
@opindex nodefaultrpaths
24488+
@item -nodefaultrpaths
24489+
Do not add default run paths for the compiler library directories to
24490+
executables, modules or dynamic libraries. On macOS 10.5 and later,
24491+
the embedded runpath is added by default unless the user adds
24492+
@option{-nodefaultrpaths} to the link line. Run paths are needed
24493+
(and therefore enforced) to build on macOS version 10.11 or later.
24494+
2448724495
@item -allowable_client @var{client_name}
2448824496
@itemx -client_name
2448924497
@itemx -compatibility_version

0 commit comments

Comments
 (0)