From: Simon Wright <simon@pushface.org>
Subject: Re: Trying to install the latest GtkAda for Mac on Mojave using Community 2018
Date: Mon, 04 Feb 2019 15:44:35 +0000
Date: 2019-02-04T15:44:35+00:00 [thread overview]
Message-ID: <ly36p3zhgc.fsf@pushface.org> (raw)
In-Reply-To: 91fd8c43-e858-4e16-9113-daa049924adf@googlegroups.com
ahlan@marriott.org writes:
> When I type Make I now get
>
> ld: unknown option: -Wl
> collect2: error: ld returned 1 exit status
This is odd.
gprbuild (or gnatmake) calls gnatlink which calls gcc (or maybe g++)
which eventually calls the system ld with appropriate arguments.
-Wl starts an instruction to gcc to pass an argument through to the
system linker: if you say -Wl,-foo,bar then ld sees
ld ... -foo bar ...
(see https://gcc.gnu.org/onlinedocs/gcc/Link-Options.html).
Ah! the first comma is important: I just tried this,
$ gnatmake raiser.adb -largs -Wl
gcc -c raiser.adb
gnatbind -x raiser.ali
gnatlink raiser.ali -Wl
gcc: error: unrecognized command line option '-Wl'; did you mean '-W'?
gnatlink: error when calling /opt/gcc-8.1.0/bin/gcc
gnatmake: *** link failed.
Maybe there's a problem in the Makefile.
next prev parent reply other threads:[~2019-02-04 15:44 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-01-31 15:56 Trying to install the latest GtkAda for Mac on Mojave using Community 2018 ahlan
2019-01-31 17:13 ` ahlan
2019-01-31 18:10 ` Simon Wright
2019-02-04 11:16 ` ahlan
2019-02-04 15:44 ` Simon Wright [this message]
2019-07-12 6:06 ` Roger
2019-07-12 6:11 ` Roger
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox