From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on ip-172-31-74-118.ec2.internal X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,FREEMAIL_FROM autolearn=unavailable autolearn_force=no version=3.4.4 X-Received: by 2002:a05:6214:2c8:: with SMTP id g8mr22036583qvu.188.1592841109514; Mon, 22 Jun 2020 08:51:49 -0700 (PDT) X-Received: by 2002:a05:6820:305:: with SMTP id l5mr14719358ooe.66.1592841109243; Mon, 22 Jun 2020 08:51:49 -0700 (PDT) Path: eternal-september.org!reader01.eternal-september.org!feeder.eternal-september.org!news.gegeweb.eu!gegeweb.org!usenet-fr.net!proxad.net!feeder1-2.proxad.net!209.85.160.216.MISMATCH!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail Newsgroups: comp.lang.ada Date: Mon, 22 Jun 2020 08:51:48 -0700 (PDT) Complaints-To: groups-abuse@google.com Injection-Info: google-groups.googlegroups.com; posting-host=216.121.185.139; posting-account=ENgozAkAAACH-stq5yXctoDQeZQP2E6J NNTP-Posting-Host: 216.121.185.139 User-Agent: G2/1.0 MIME-Version: 1.0 Message-ID: <3f234cce-c49f-40a4-83a4-f0c9860d8abfo@googlegroups.com> Subject: How to supply O/S linker arguments with gprbuild? From: Warren Injection-Date: Mon, 22 Jun 2020 15:51:49 +0000 Content-Type: text/plain; charset="UTF-8" Xref: reader01.eternal-september.org comp.lang.ada:59160 List-Id: I have a GNAT project that has these pragma statements embedded to get the sucker to link. However, the directory is only valid for an instance on my Mac, so I need a better solution to replace: pragma Linker_Options("-L/usr/local/Cellar/readline/8.0.4/lib"); pragma Linker_Options("-lreadline"); I've tried to find the solution in the gnat documents but they seem to fall short of what I need to do (could not find an example nor direction in this -- perhaps I missed it). My project file looks something like this: project MyProject is for Languages use ("ada", "c"); for Source_Dirs use ("src"); for Object_Dir use "obj"; for Main use ("main.adb"); end MyProject; I've tried a variety of gpr things, but unsuccessfully. Warren