Nп/п : 97 из 100
От : Simon Wright 2:5075/128 30 сен 23 14:55:09
К : Kenneth Wolcott 30 сен 23 16:56:03
Тема : Re: GNAT linking and macOS
----------------------------------------------------------------------------------
@MSGID: <ly7co7n4ua.fsf@pushface.org> 3f2326b5
@REPLY:
<e2a2223e-621e-4987-95b3-61e3349a9238n@googlegroups.com> 8d704e53
@REPLYADDR Simon Wright <simon@pushface.org>
@REPLYTO 2:5075/128 Simon Wright
@CHRS: CP866 2
@RFC: 1 0
@RFC-Message-ID: <ly7co7n4ua.fsf@pushface.org>
<
lymsx6mni8.fsf@pushface.org><
lybkdmm2s2.fsf@pushface.org>
b3-61e3349a9238n@googlegroups.com>
@TZUTC: 0100
@PID: Gnus/5.13 (Gnus v5.13) Emacs/28.2 (darwin)
@TID: FIDOGATE-5.12-ge4e8b94
Kenneth Wolcott <kennethwolcott@gmail.com> writes:
>> > It turns out there`s an environment variable DEFAULT_LINKER, which with
>
> I tried this (xport
> DEFAULT_LINKER=/Library/Developer/CommandLineTools/usr/bin/ld-classic)
> and it did not help:
As I said above, this only affects building GCC, not using it. Sorry.
> Are there any other workarounds to solve the inability to link? This
> does not only adversely affect Ada, but everything that uses a linker,
> BTW.
I have some evidence that the issue only arises with static
libraries. Not much help.
We`re hoping that the 15.1 release of Command Line Tools fixes this. In
the meantime,
(1) using gnatmake, or gprbuild without changing the GPR:
$ gnatmake foo.adb -largs -Wl,-ld_classic
or
$ gprbuild -P foo -largs -Wl,-ld_classic
(2) modifying the GPR by adding a new package Linker:
package Linker is
for Default_Switches ("ada") use ("-Wl,-ld_classic");
end Linker;
(3) if you already have a package Linker, modify as above.
--- Gnus/5.13 (Gnus v5.13) Emacs/28.2 (darwin)
* Origin: A noiseless patient Spider (2:5075/128)
SEEN-BY: 5001/100 5005/49 5015/255 5019/40 5020/715
848 1042 4441 12000
SEEN-BY: 5030/49 1081 5058/104 5075/128
@PATH: 5075/128 5020/1042 4441