[vlc-devel] [PATCH 1/2] extra: packages: add a Raspberry Pi build scripts

Konstantin Pavlov thresh at videolan.org
Fri Mar 20 11:25:43 CET 2020


Hi Steve!

On Fri, Mar 20, 2020 at 10:26:30AM +0100, Steve Lhomme wrote:
> +OPTIONS:
> +   -h            Show some help
> +   -r            Release mode (default is debug)
> +   -a <arch>     Use the specified arch (default: arm, possible aarch64)
> +case $ARCH in
> +    aarch64)
> +        SHORTARCH="linuxarm64"
> +        EABI="gnu"
> +        ;;
> +    arm)
> +        SHORTARCH="linuxarm"
> +        EABI="gnueabihf"
> +        ;;
> +# force the same compiler as current Raspbian binaries
> +export CC="arm-linux-gnueabihf-gcc-8"
> +export CXX="arm-linux-gnueabihf-g++-8"
> +export AR="arm-linux-gnueabihf-gcc-ar-8"
> +export RANLIB="arm-linux-gnueabihf-gcc-ranlib-8"

Are those the same even if you force aarch64 build?

As a side note, maybe we should check for the existense of those binaries
before going forward in a script - I assume raspbian might update the
toolchain at some point - and they probably used something else before.

-- 
VideoLAN, Vice President
www.videolan.org
+7 926 165 45 31
@cryothresh


More information about the vlc-devel mailing list