public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
From: Iain Sandoe <iains.gcc@gmail.com>
To: gcc-patches@gcc.gnu.org
Cc: joseph@codesourcery.com
Subject: [PATCH 4/4] Darwin, Ada : Add loader path as a default rpath.
Date: Wed, 17 Nov 2021 21:03:19 +0000	[thread overview]
Message-ID: <20211117210319.92514-5-iain@sandoe.co.uk> (raw)
In-Reply-To: <20211117210319.92514-4-iain@sandoe.co.uk>

Allow the Ada runtimes to find GCC runtimes relative to their non-
standard install positions.

gcc/ada/
	* gcc-interface/Makefile.in: Add @loader_path runpaths to the
	libgnat and libgnarl shared library builds.
	
---
 gcc/ada/gcc-interface/Makefile.in | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/gcc/ada/gcc-interface/Makefile.in b/gcc/ada/gcc-interface/Makefile.in
index 53d0739470a..bffe9de4c89 100644
--- a/gcc/ada/gcc-interface/Makefile.in
+++ b/gcc/ada/gcc-interface/Makefile.in
@@ -788,6 +788,7 @@ gnatlib-shared-darwin:
 		$(GNATRTL_NONTASKING_OBJS) $(LIBGNAT_OBJS) \
 		$(SO_OPTS) \
 		-Wl,-install_name,@rpath/libgnat$(hyphen)$(LIBRARY_VERSION)$(soext) \
+		-Wl,-rpath,@loader_path \
 		$(MISCLIB)
 	cd $(RTSDIR); `echo "$(GCC_FOR_TARGET)" \
                 | sed -e 's,\./xgcc,../../xgcc,' -e 's,-B\./,-B../../,'` -dynamiclib $(PICFLAG_FOR_TARGET) \
@@ -795,6 +796,7 @@ gnatlib-shared-darwin:
 		$(GNATRTL_TASKING_OBJS) \
 		$(SO_OPTS) \
 		-Wl,-install_name,@rpath/libgnarl$(hyphen)$(LIBRARY_VERSION)$(soext) \
+		-Wl,-rpath,@loader_path \
 		$(THREADSLIB) -Wl,libgnat$(hyphen)$(LIBRARY_VERSION)$(soext)
 	cd $(RTSDIR); $(LN_S) libgnat$(hyphen)$(LIBRARY_VERSION)$(soext) \
 		libgnat$(soext)
-- 
2.24.3 (Apple Git-128)


  reply	other threads:[~2021-11-17 21:03 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-11-17 21:03 [PATCH 0/4] Darwin: Replace environment runpath with embedded [PR88590] Iain Sandoe
2021-11-17 21:03 ` [PATCH 1/4] Driver : Provide a spec to insert rpaths for compiler lib dirs Iain Sandoe
2021-11-17 21:03   ` [PATCH 2/4] Darwin : Handle rpaths given on the command line Iain Sandoe
2021-11-17 21:03     ` [PATCH 3/4] Darwin : Allow for configuring Darwin to use embedded runpath Iain Sandoe
2021-11-17 21:03       ` Iain Sandoe [this message]
2021-11-18  7:28         ` [PATCH 4/4] Darwin, Ada : Add loader path as a default rpath Arnaud Charlet
2021-11-17 22:50       ` [PATCH 3/4] Darwin : Allow for configuring Darwin to use embedded runpath Joseph Myers
2021-11-17 23:30         ` Iain Sandoe
2021-11-18 21:49           ` Joseph Myers
     [not found]       ` <160318AE-E2F4-4612-AEC1-5013419B6359@gmail.com>
2021-11-18 15:34         ` Jonathan Wakely

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20211117210319.92514-5-iain@sandoe.co.uk \
    --to=iains.gcc@gmail.com \
    --cc=gcc-patches@gcc.gnu.org \
    --cc=iain@sandoe.co.uk \
    --cc=joseph@codesourcery.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).