Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 14 Nov 2023 17:00:41 +0000
From:      Nuno Teixeira <eduardo@freebsd.org>
To:        Ganael LAPLANCHE <martymac@freebsd.org>
Cc:        ports-committers@freebsd.org, dev-commits-ports-all@freebsd.org,  dev-commits-ports-main@freebsd.org
Subject:   Re: git: 2541ea0bebbc - main - comms/gnuradio: Fix build after 833bce429aa8
Message-ID:  <CAFDf7U%2BUO2WTZF3t_oJprwusqva-qz3F-tgeAzui-v3UZDCz6w@mail.gmail.com>
In-Reply-To: <202311141550.3AEFoCLt006999@gitrepo.freebsd.org>

index | next in thread | previous in thread | raw e-mail

[-- Attachment #1 --]
Hello Ganael,

You can use "USES= localbase:ldflags" too.

Cheers,

Ganael LAPLANCHE <martymac@freebsd.org> escreveu no dia terça, 14/11/2023
à(s) 16:01:

> The branch main has been updated by martymac:
>
> URL:
> https://cgit.FreeBSD.org/ports/commit/?id=2541ea0bebbc2fec04a11e297b9f619b680c9f49
>
> commit 2541ea0bebbc2fec04a11e297b9f619b680c9f49
> Author:     Ganael LAPLANCHE <martymac@FreeBSD.org>
> AuthorDate: 2023-11-14 15:48:29 +0000
> Commit:     Ganael LAPLANCHE <martymac@FreeBSD.org>
> CommitDate: 2023-11-14 15:49:58 +0000
>
>     comms/gnuradio: Fix build after 833bce429aa8
>
>     Commit 833bce429aa8 indirectly broke comms/gnuradio, making the linker
>     not find its libraries anymore:
>
>       ld: error: unable to find library -lgsl
>       ld: error: unable to find library -lgslcblas
>
>     Fix build by adding ${LOCALBASE}/lib to LDFLAGS.
> ---
>  comms/gnuradio/Makefile | 1 +
>  1 file changed, 1 insertion(+)
>
> diff --git a/comms/gnuradio/Makefile b/comms/gnuradio/Makefile
> index f54a65fc9d88..a82842fb1c0f 100644
> --- a/comms/gnuradio/Makefile
> +++ b/comms/gnuradio/Makefile
> @@ -74,6 +74,7 @@ USE_WX=               3.2
>  USE_QT=                buildtools core gui xml qmake widgets
>  WX_COMPS=      wx python:run
>  USE_LDCONFIG=  yes
> +LDFLAGS+=      -L${LOCALBASE}/lib
>  LIBSTRIP_FILES=        analog audio blocks channels digital dtv fec fft\
>                 filter pmt qtgui runtime trellis video-sdl\
>                 vocoder wavelet
>


-- 
Nuno Teixeira
FreeBSD Committer (ports)

[-- Attachment #2 --]
<div dir="ltr"><div>Hello Ganael,</div><div><br></div><div>You can use &quot;USES= localbase:ldflags&quot; too.<br><br></div><div>Cheers,<br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">Ganael LAPLANCHE &lt;<a href="mailto:martymac@freebsd.org">martymac@freebsd.org</a>&gt; escreveu no dia terça, 14/11/2023 à(s) 16:01:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">The branch main has been updated by martymac:<br>
<br>
URL: <a href="https://cgit.FreeBSD.org/ports/commit/?id=2541ea0bebbc2fec04a11e297b9f619b680c9f49" rel="noreferrer" target="_blank">https://cgit.FreeBSD.org/ports/commit/?id=2541ea0bebbc2fec04a11e297b9f619b680c9f49</a><br>;
<br>
commit 2541ea0bebbc2fec04a11e297b9f619b680c9f49<br>
Author:     Ganael LAPLANCHE &lt;martymac@FreeBSD.org&gt;<br>
AuthorDate: 2023-11-14 15:48:29 +0000<br>
Commit:     Ganael LAPLANCHE &lt;martymac@FreeBSD.org&gt;<br>
CommitDate: 2023-11-14 15:49:58 +0000<br>
<br>
    comms/gnuradio: Fix build after 833bce429aa8<br>
<br>
    Commit 833bce429aa8 indirectly broke comms/gnuradio, making the linker<br>
    not find its libraries anymore:<br>
<br>
      ld: error: unable to find library -lgsl<br>
      ld: error: unable to find library -lgslcblas<br>
<br>
    Fix build by adding ${LOCALBASE}/lib to LDFLAGS.<br>
---<br>
 comms/gnuradio/Makefile | 1 +<br>
 1 file changed, 1 insertion(+)<br>
<br>
diff --git a/comms/gnuradio/Makefile b/comms/gnuradio/Makefile<br>
index f54a65fc9d88..a82842fb1c0f 100644<br>
--- a/comms/gnuradio/Makefile<br>
+++ b/comms/gnuradio/Makefile<br>
@@ -74,6 +74,7 @@ USE_WX=               3.2<br>
 USE_QT=                buildtools core gui xml qmake widgets<br>
 WX_COMPS=      wx python:run<br>
 USE_LDCONFIG=  yes<br>
+LDFLAGS+=      -L${LOCALBASE}/lib<br>
 LIBSTRIP_FILES=        analog audio blocks channels digital dtv fec fft\<br>
                filter pmt qtgui runtime trellis video-sdl\<br>
                vocoder wavelet<br>
</blockquote></div><br clear="all"><br><span class="gmail_signature_prefix">-- </span><br><div dir="ltr" class="gmail_signature"><div dir="ltr"><span style="color:rgb(102,102,102)">Nuno Teixeira<br>FreeBSD Committer (ports)</span></div></div>
home | help

Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAFDf7U%2BUO2WTZF3t_oJprwusqva-qz3F-tgeAzui-v3UZDCz6w>