]> gcc.gnu.org Git - gcc.git/commitdiff
Ada, Darwin : Use DSYMUTIL_FOR_TARGET in libgnat/gnarl builds.
authorIain Sandoe <iain@sandoe.co.uk>
Fri, 12 Nov 2021 16:36:25 +0000 (16:36 +0000)
committerIain Sandoe <iains@gcc.gnu.org>
Sat, 29 Jun 2024 02:38:37 +0000 (03:38 +0100)
Most of the time we get away with using the dsymutil that is
installed with the latest Xcode, however for some cross-compilation
cases that does not work.

We now have the ability to specify the correct dsymutil to use for
the toolchain (--with-dsymutil=) and we should use that specified
tool for debug link.  Fixes cross-compilers from x86-64 to powerpc.

Signed-off-by: Iain Sandoe <iain@sandoe.co.uk>
gcc/ada/ChangeLog:

* gcc-interface/Makefile.in: Use DSYMUTIL_FOR_TARGET in
libgnat/libgnarl recipies.

gcc/ada/gcc-interface/Makefile.in

index 6cc95038c40ee9cb3c35bd17b1bc67a1c7519d1b..1f15652d2c83e5a0525e004698248a5d22ccc8c0 100644 (file)
@@ -805,8 +805,8 @@ gnatlib-shared-darwin:
                libgnat$(soext)
        cd $(RTSDIR); $(LN_S) libgnarl$(hyphen)$(LIBRARY_VERSION)$(soext) \
                libgnarl$(soext)
-       cd $(RTSDIR); dsymutil libgnat$(hyphen)$(LIBRARY_VERSION)$(soext)
-       cd $(RTSDIR); dsymutil libgnarl$(hyphen)$(LIBRARY_VERSION)$(soext)
+       cd $(RTSDIR); $(DSYMUTIL_FOR_TARGET) libgnat$(hyphen)$(LIBRARY_VERSION)$(soext)
+       cd $(RTSDIR); $(DSYMUTIL_FOR_TARGET) libgnarl$(hyphen)$(LIBRARY_VERSION)$(soext)
 
 gnatlib-shared:
        $(MAKE) $(FLAGS_TO_PASS) \
This page took 0.064583 seconds and 5 git commands to generate.