comp.lang.ada
 help / color / mirror / Atom feed
From: Kenneth Wolcott <kennethwolcott@gmail.com>
Subject: Re: GNAT linking and macOS
Date: Sat, 30 Sep 2023 16:57:57 -0700 (PDT)	[thread overview]
Message-ID: <00e88f44-a9b8-4a66-8756-2c2e27e07489n@googlegroups.com> (raw)
In-Reply-To: <ly7co7n4ua.fsf@pushface.org>

Hi Simon;

> We're hoping that the 15.1 release of Command Line Tools fixes this.

+1

> 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.

I chose option #1a...

Using the Turtle Graphics Rosetta Code example for Ada, I was able to get a successful compile+link:

gnatmake main.adb -largs -Wl,-ld_classic
gcc -c main.adb
gnatbind -x main.ali
gnatlink main.ali -Wl,-ld_classic
-macosx_version_min has been renamed to -macos_version_min

Appreciate the suggestions...

Thanks,
Ken

  reply	other threads:[~2023-09-30 23:57 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-09-27 19:30 GNAT linking and macOS moi
2023-09-28 13:32 ` Simon Wright
2023-09-28 21:00   ` Simon Wright
2023-09-29 20:19     ` hn...@yahoo.de
2023-09-29 20:26     ` hn...@yahoo.de
2023-09-30  0:51       ` moi
2023-09-30 14:20       ` Simon Wright
2023-09-30  2:30     ` Kenneth Wolcott
2023-09-30 13:55       ` Simon Wright
2023-09-30 23:57         ` Kenneth Wolcott [this message]
2023-10-01  7:57           ` Simon Wright
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox