From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on ip-172-31-91-241.ec2.internal X-Spam-Level: X-Spam-Status: No, score=0.0 required=3.0 tests=FREEMAIL_FROM autolearn=ham autolearn_force=no version=3.4.6 X-Received: by 2002:a05:622a:1a1a:b0:40f:e2a5:3100 with SMTP id f26-20020a05622a1a1a00b0040fe2a53100mr142369qtb.6.1696118278406; Sat, 30 Sep 2023 16:57:58 -0700 (PDT) X-Received: by 2002:a9d:6b82:0:b0:6b9:cf90:87a6 with SMTP id b2-20020a9d6b82000000b006b9cf9087a6mr2587926otq.1.1696118278207; Sat, 30 Sep 2023 16:57:58 -0700 (PDT) Path: eternal-september.org!news.eternal-september.org!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!peer01.iad!feed-me.highwinds-media.com!news.highwinds-media.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail Newsgroups: comp.lang.ada Date: Sat, 30 Sep 2023 16:57:57 -0700 (PDT) In-Reply-To: Injection-Info: google-groups.googlegroups.com; posting-host=98.59.238.112; posting-account=oHOvdQoAAACYgyEBjgPNvKFOGxg8pNns NNTP-Posting-Host: 98.59.238.112 References: User-Agent: G2/1.0 MIME-Version: 1.0 Message-ID: <00e88f44-a9b8-4a66-8756-2c2e27e07489n@googlegroups.com> Subject: Re: GNAT linking and macOS From: Kenneth Wolcott Injection-Date: Sat, 30 Sep 2023 23:57:58 +0000 Content-Type: text/plain; charset="UTF-8" X-Received-Bytes: 2087 Xref: news.eternal-september.org comp.lang.ada:65761 List-Id: 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