Rocksolid Light

Welcome to RetroBBS

mail  files  register  newsreader  groups  login

Message-ID:  

Beeping is cute, if you are in the office ;) -- Alan Cox


devel / comp.lang.ada / M1 MAC - libraries

SubjectAuthor
* M1 MAC - librariesRajagopalan Srinivasan 192/73
`* Re: M1 MAC - librariesSimon Wright
 +- Re: M1 MAC - librariesRajagopalan Srinivasan 192/73
 `- Re: M1 MAC - librariesDennis Lee Bieber

1
M1 MAC - libraries

<23b32951-0629-4227-bc10-fdf10d3cd7e4n@googlegroups.com>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=9869&group=comp.lang.ada#9869

  copy link   Newsgroups: comp.lang.ada
X-Received: by 2002:a05:6214:8e7:b0:635:d9b4:ba20 with SMTP id dr7-20020a05621408e700b00635d9b4ba20mr28186qvb.11.1690760077266;
Sun, 30 Jul 2023 16:34:37 -0700 (PDT)
X-Received: by 2002:a05:6870:98a8:b0:1bb:4d41:e924 with SMTP id
eg40-20020a05687098a800b001bb4d41e924mr10388340oab.8.1690760076956; Sun, 30
Jul 2023 16:34:36 -0700 (PDT)
Path: i2pn2.org!i2pn.org!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!peer03.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: Sun, 30 Jul 2023 16:34:36 -0700 (PDT)
Injection-Info: google-groups.googlegroups.com; posting-host=108.16.14.5; posting-account=oDmVuAoAAAB1y-q7iD-iUFbo80QOjrKV
NNTP-Posting-Host: 108.16.14.5
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <23b32951-0629-4227-bc10-fdf10d3cd7e4n@googlegroups.com>
Subject: M1 MAC - libraries
From: rsrinivasan@alumni.iitm.ac.in (Rajagopalan Srinivasan 192/73)
Injection-Date: Sun, 30 Jul 2023 23:34:37 +0000
Content-Type: text/plain; charset="UTF-8"
X-Received-Bytes: 1233
 by: Rajagopalan Srinivas - Sun, 30 Jul 2023 23:34 UTC

What is the way to specify platform dependent Linker options on a Mac?

for linux I use something like the following in my gpr file:

case os is

when "GNU/Linux" =>

not sure what is equivalent for the M1 Mac?

thanks, Srini

Re: M1 MAC - libraries

<ly8rawa4vw.fsf@pushface.org>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=9870&group=comp.lang.ada#9870

  copy link   Newsgroups: comp.lang.ada
Path: i2pn2.org!i2pn.org!eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: simon@pushface.org (Simon Wright)
Newsgroups: comp.lang.ada
Subject: Re: M1 MAC - libraries
Date: Mon, 31 Jul 2023 08:58:59 +0100
Organization: A noiseless patient Spider
Lines: 24
Message-ID: <ly8rawa4vw.fsf@pushface.org>
References: <23b32951-0629-4227-bc10-fdf10d3cd7e4n@googlegroups.com>
MIME-Version: 1.0
Content-Type: text/plain
Injection-Info: dont-email.me; posting-host="c301f83f0cae6bcc5c7df4a6043e1a51";
logging-data="3398297"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18dGwMZ4z9r2ShCNrMWL4XS9lRnmKXeTXs="
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.2 (darwin)
Cancel-Lock: sha1:+6L27rrUcPw1DC3U5yiML9bGQIY=
sha1:Qn1uMLaGzCsglm0Rr2R7wDRHdq8=
 by: Simon Wright - Mon, 31 Jul 2023 07:58 UTC

"Rajagopalan Srinivasan 192/73" <rsrinivasan@alumni.iitm.ac.in> writes:

> What is the way to specify platform dependent Linker options on a Mac?
>
> for linux I use something like the following in my gpr file:
>
> case os is
>
> when "GNU/Linux" =>
>
> not sure what is equivalent for the M1 Mac?

What is "os" in the above? If it's the environment variable OS then,
indeed, there's no equivalent on macOS (either kind of silicon).

I don't know whether Windows defines "OS", but if it does you could just
set Darwin (or whatever) as the default?

OS := external ("OS", "Darwin");

If you're using Alire, the generated config/{crate}_config.gpr contains
on macOS

Alire_Host_OS := "macos";

Re: M1 MAC - libraries

<9ec74936-e79c-4cea-8304-b45237d8e61cn@googlegroups.com>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=9871&group=comp.lang.ada#9871

  copy link   Newsgroups: comp.lang.ada
X-Received: by 2002:a37:bd44:0:b0:76c:ab4f:e9a7 with SMTP id n65-20020a37bd44000000b0076cab4fe9a7mr10595qkf.13.1690794477589;
Mon, 31 Jul 2023 02:07:57 -0700 (PDT)
X-Received: by 2002:a05:6808:158c:b0:3a5:a78c:568 with SMTP id
t12-20020a056808158c00b003a5a78c0568mr17559477oiw.9.1690794477225; Mon, 31
Jul 2023 02:07:57 -0700 (PDT)
Path: i2pn2.org!i2pn.org!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!peer02.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: Mon, 31 Jul 2023 02:07:56 -0700 (PDT)
In-Reply-To: <ly8rawa4vw.fsf@pushface.org>
Injection-Info: google-groups.googlegroups.com; posting-host=108.16.14.5; posting-account=oDmVuAoAAAB1y-q7iD-iUFbo80QOjrKV
NNTP-Posting-Host: 108.16.14.5
References: <23b32951-0629-4227-bc10-fdf10d3cd7e4n@googlegroups.com> <ly8rawa4vw.fsf@pushface.org>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <9ec74936-e79c-4cea-8304-b45237d8e61cn@googlegroups.com>
Subject: Re: M1 MAC - libraries
From: rsrinivasan@alumni.iitm.ac.in (Rajagopalan Srinivasan 192/73)
Injection-Date: Mon, 31 Jul 2023 09:07:57 +0000
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Received-Bytes: 2414
 by: Rajagopalan Srinivas - Mon, 31 Jul 2023 09:07 UTC

On Monday, July 31, 2023 at 3:59:04 AM UTC-4, Simon Wright wrote:
> "Rajagopalan Srinivasan 192/73" <rsrin...@alumni.iitm.ac.in> writes:
>
> > What is the way to specify platform dependent Linker options on a Mac?
> >
> > for linux I use something like the following in my gpr file:
> >
> > case os is
> >
> > when "GNU/Linux" =>
> >
> > not sure what is equivalent for the M1 Mac?
> What is "os" in the above? If it's the environment variable OS then,
> indeed, there's no equivalent on macOS (either kind of silicon).
>
> I don't know whether Windows defines "OS", but if it does you could just
> set Darwin (or whatever) as the default?
>
> OS := external ("OS", "Darwin");
>
> If you're using Alire, the generated config/{crate}_config.gpr contains
> on macOS
>
> Alire_Host_OS := "macOS";
Excellent suggestion. The following worked:

package Linker is
case audio_config.Alire_Host_OS is
when "macos" =>
for Switches("Ada") use ("-L/opt/homebrew/lib/", "-lsndfile");
when others =>
for Switches("Ada") use ("-lsndfile");
end case;
end Linker;

Re: M1 MAC - libraries

<i2ofcihoi6j8ajophl1jqqc4l63vfrrvp6@4ax.com>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=9872&group=comp.lang.ada#9872

  copy link   Newsgroups: comp.lang.ada
Path: i2pn2.org!i2pn.org!weretis.net!feeder6.news.weretis.net!news.misty.com!border-2.nntp.ord.giganews.com!nntp.giganews.com!Xl.tags.giganews.com!local-1.nntp.ord.giganews.com!news.giganews.com.POSTED!not-for-mail
NNTP-Posting-Date: Mon, 31 Jul 2023 16:25:27 +0000
From: wlfraed@ix.netcom.com (Dennis Lee Bieber)
Newsgroups: comp.lang.ada
Subject: Re: M1 MAC - libraries
Date: Mon, 31 Jul 2023 12:25:27 -0400
Organization: IISS Elusive Unicorn
Message-ID: <i2ofcihoi6j8ajophl1jqqc4l63vfrrvp6@4ax.com>
References: <23b32951-0629-4227-bc10-fdf10d3cd7e4n@googlegroups.com> <ly8rawa4vw.fsf@pushface.org>
User-Agent: ForteAgent/8.00.32.1272
X-No-Archive: yes
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Lines: 14
X-Usenet-Provider: http://www.giganews.com
X-Trace: sv3-kw4phLd6VB8v3+keSaAfYKbzorQIPhK+40w6QRjA+i2Oms9zPGts0eHgSXXT7gNZvi2seFNyrp6ybKF!aET0bDo7nE9zoXXaPjGWvQqq5wupLLzE/X37ySw2jr5f34D9k2qYV2iwhtmyeRyb+T0hfD8/
X-Complaints-To: abuse@giganews.com
X-DMCA-Notifications: http://www.giganews.com/info/dmca.html
X-Abuse-and-DMCA-Info: Please be sure to forward a copy of ALL headers
X-Abuse-and-DMCA-Info: Otherwise we will be unable to process your complaint properly
X-Postfilter: 1.3.40
 by: Dennis Lee Bieber - Mon, 31 Jul 2023 16:25 UTC

On Mon, 31 Jul 2023 08:58:59 +0100, Simon Wright <simon@pushface.org>
declaimed the following:

>I don't know whether Windows defines "OS", but if it does you could just
>set Darwin (or whatever) as the default?
>

Window 10 Pro:

C:\Users\Owner>echo %os%
Windows_NT

C:\Users\Owner>

1
server_pubkey.txt

rocksolid light 0.9.8
clearnet tor