[vlc-devel] [PATCH] contrib: allow using prebuilt packages when cross-compiling
Rémi Denis-Courmont
remi at remlab.net
Thu Jan 30 17:59:34 CET 2020
Le torstaina 30. tammikuuta 2020, 18.37.35 EET Alexandre Janniaux a écrit :
> Hi,
>
> On Thu, Jan 30, 2020 at 04:37:57PM +0100, Steve Lhomme wrote:
> > On 2020-01-30 16:34, Alexandre Janniaux wrote:
> > > Hi,
> > >
> > > While I want such patch as much as you want, this doesn't
> > > respect the original intent of this, which is avoiding using
> > > system libraries for targets when we don't want to, so it
> > > should probably be enabled with an option somehow imho.
> > >
> > > An example of such issue would be linking some system
> > > library while building for android, because you have an
> > > environment alike available system-wide for other purpose,
> > > and not shipping the shared object that was linked.
> >
> > That's a side effect of using pkg-config incorrectly (wrong
> > PKG_CONFIG_LIBDIR, direct pkg-config instead of $TRIPLET-pkg-config, etc).
> > When using pkg-config properly you don't need to care if you're going to
> > hit system libraries while cross-compiling, because it will never find
> > them.
> But using pkg-config incorrectly leads to really time wasting
> issues, especially for people who only wants to compile with
> default settings and know nothing of the build system or
> pkgconfig.
That has nothing to do with the build being native or not, has it? And in all
likelihood such misconfiguration would lead to a very quick build failure, so I
have a hard time with the time loss argument.
--
雷米‧德尼-库尔蒙
http://www.remlab.net/
More information about the vlc-devel
mailing list