xbps-src: make sure to apply FFLAGS properly like CFLAGS
This commit is contained in:
parent
3006d4c083
commit
5922df60c7
46 changed files with 53 additions and 48 deletions
|
@ -1,5 +1,5 @@
|
|||
XBPS_TARGET_CFLAGS="-march=armv8-a"
|
||||
XBPS_TARGET_CXXFLAGS="$XBPS_TARGET_CFLAGS"
|
||||
XBPS_TARGET_FFLAGS=""
|
||||
XBPS_TARGET_FFLAGS="$XBPS_TARGET_CFLAGS"
|
||||
XBPS_TRIPLET="aarch64-unknown-linux-musl"
|
||||
XBPS_RUST_TARGET="$XBPS_TRIPLET"
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
XBPS_TARGET_CFLAGS="-march=armv8-a"
|
||||
XBPS_TARGET_CXXFLAGS="$XBPS_TARGET_CFLAGS"
|
||||
XBPS_TARGET_FFLAGS=""
|
||||
XBPS_TARGET_FFLAGS="$XBPS_TARGET_CFLAGS"
|
||||
XBPS_TRIPLET="aarch64-unknown-linux-gnu"
|
||||
XBPS_RUST_TARGET="$XBPS_TRIPLET"
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
XBPS_TARGET_CFLAGS="-march=armv6 -mfpu=vfp -mfloat-abi=hard"
|
||||
XBPS_TARGET_CXXFLAGS="$XBPS_TARGET_CFLAGS"
|
||||
XBPS_TARGET_FFLAGS=""
|
||||
XBPS_TARGET_FFLAGS="$XBPS_TARGET_CFLAGS"
|
||||
XBPS_TRIPLET="armv6l-linux-musleabihf"
|
||||
XBPS_RUST_TARGET="arm-unknown-linux-musleabihf"
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
XBPS_TARGET_CFLAGS="-march=armv6 -mfpu=vfp -mfloat-abi=hard"
|
||||
XBPS_TARGET_CXXFLAGS="$XBPS_TARGET_CFLAGS"
|
||||
XBPS_TARGET_FFLAGS=""
|
||||
XBPS_TARGET_FFLAGS="$XBPS_TARGET_CFLAGS"
|
||||
XBPS_TRIPLET="armv6l-unknown-linux-gnueabihf"
|
||||
XBPS_RUST_TARGET="arm-unknown-linux-gnueabihf"
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
XBPS_TARGET_CFLAGS="-march=armv7-a -mfpu=vfpv3 -mfloat-abi=hard"
|
||||
XBPS_TARGET_CXXFLAGS="$XBPS_CXXFLAGS"
|
||||
XBPS_TARGET_FFLAGS=""
|
||||
XBPS_TARGET_FFLAGS="$XBPS_TARGET_CFLAGS"
|
||||
XBPS_TRIPLET="armv7l-linux-musleabihf"
|
||||
XBPS_RUST_TARGET="armv7-unknown-linux-musleabihf"
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
XBPS_TARGET_CFLAGS="-march=armv7-a -mfpu=vfpv3 -mfloat-abi=hard"
|
||||
XBPS_TARGET_CXXFLAGS="$XBPS_TARGET_CFLAGS"
|
||||
XBPS_TARGET_FFLAGS=""
|
||||
XBPS_TARGET_FFLAGS="$XBPS_TARGET_CFLAGS"
|
||||
XBPS_TRIPLET="armv7l-unknown-linux-gnueabihf"
|
||||
XBPS_RUST_TARGET="armv7-unknown-linux-gnueabihf"
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
XBPS_TARGET_CFLAGS="-mtune=i686"
|
||||
XBPS_TARGET_CXXFLAGS="$XBPS_TARGET_CFLAGS"
|
||||
XBPS_TARGET_FFLAGS=""
|
||||
XBPS_TARGET_FFLAGS="$XBPS_TARGET_CFLAGS"
|
||||
XBPS_TRIPLET="i686-pc-linux-musl"
|
||||
XBPS_RUST_TARGET="i686-unknown-linux-musl"
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
XBPS_TARGET_CFLAGS="-mtune=i686"
|
||||
XBPS_TARGET_CXXFLAGS="$XBPS_TARGET_CFLAGS"
|
||||
XBPS_TARGET_FFLAGS=""
|
||||
XBPS_TARGET_FFLAGS="$XBPS_TARGET_CFLAGS"
|
||||
XBPS_TRIPLET="i686-pc-linux-gnu"
|
||||
XBPS_RUST_TARGET="i686-unknown-linux-gnu"
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
XBPS_TARGET_CFLAGS="-mtune=G4"
|
||||
XBPS_TARGET_CXXFLAGS="$XBPS_TARGET_CFLAGS"
|
||||
XBPS_TARGET_FFLAGS=""
|
||||
XBPS_TARGET_FFLAGS="$XBPS_TARGET_CFLAGS"
|
||||
XBPS_TRIPLET="powerpc-linux-musl"
|
||||
XBPS_RUST_TARGET="powerpc-unknown-linux-musl"
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
XBPS_TARGET_CFLAGS="-mtune=G4"
|
||||
XBPS_TARGET_CXXFLAGS="$XBPS_TARGET_CFLAGS"
|
||||
XBPS_TARGET_FFLAGS=""
|
||||
XBPS_TARGET_FFLAGS="$XBPS_TARGET_CFLAGS"
|
||||
XBPS_TRIPLET="powerpc-linux-gnu"
|
||||
XBPS_RUST_TARGET="powerpc-unknown-linux-gnu"
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
XBPS_TARGET_CFLAGS="-mcpu=970 -mtune=power9"
|
||||
XBPS_TARGET_CXXFLAGS="$XBPS_TARGET_CFLAGS"
|
||||
XBPS_TARGET_FFLAGS=""
|
||||
XBPS_TARGET_FFLAGS="$XBPS_TARGET_CFLAGS"
|
||||
XBPS_TRIPLET="powerpc64-unknown-linux-musl"
|
||||
XBPS_RUST_TARGET="$XBPS_TRIPLET"
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
XBPS_TARGET_CFLAGS="-mcpu=970 -mtune=power9"
|
||||
XBPS_TARGET_CXXFLAGS="$XBPS_TARGET_CFLAGS"
|
||||
XBPS_TARGET_FFLAGS=""
|
||||
XBPS_TARGET_FFLAGS="$XBPS_TARGET_CFLAGS"
|
||||
XBPS_TRIPLET="powerpc64-unknown-linux-gnu"
|
||||
XBPS_RUST_TARGET="$XBPS_TRIPLET"
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
XBPS_TARGET_CFLAGS="-mtune=power9"
|
||||
XBPS_TARGET_CXXFLAGS="$XBPS_TARGET_CFLAGS"
|
||||
XBPS_TARGET_FFLAGS=""
|
||||
XBPS_TARGET_FFLAGS="$XBPS_TARGET_CFLAGS"
|
||||
XBPS_TRIPLET="powerpc64le-unknown-linux-musl"
|
||||
XBPS_RUST_TARGET="$XBPS_TRIPLET"
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
XBPS_TARGET_CFLAGS="-mtune=power9"
|
||||
XBPS_TARGET_CXXFLAGS="$XBPS_TARGET_CFLAGS"
|
||||
XBPS_TARGET_FFLAGS=""
|
||||
XBPS_TARGET_FFLAGS="$XBPS_TARGET_CFLAGS"
|
||||
XBPS_TRIPLET="powerpc64le-unknown-linux-gnu"
|
||||
XBPS_RUST_TARGET="$XBPS_TRIPLET"
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
XBPS_TARGET_CFLAGS="-mcpu=power8 -mtune=power9"
|
||||
XBPS_TARGET_CXXFLAGS="$XBPS_TARGET_CFLAGS"
|
||||
XBPS_TARGET_FFLAGS=""
|
||||
XBPS_TARGET_FFLAGS="$XBPS_TARGET_CFLAGS"
|
||||
XBPS_TRIPLET="powerpcle-linux-musl"
|
||||
XBPS_RUST_TARGET="powerpcle-unknown-linux-musl"
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
XBPS_TARGET_CFLAGS="-mcpu=power8 -mtune=power9"
|
||||
XBPS_TARGET_CXXFLAGS="$XBPS_TARGET_CFLAGS"
|
||||
XBPS_TARGET_FFLAGS=""
|
||||
XBPS_TARGET_FFLAGS="$XBPS_TARGET_CFLAGS"
|
||||
XBPS_TRIPLET="powerpcle-linux-gnu"
|
||||
XBPS_RUST_TARGET="powerpcle-unknown-linux-gnu"
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
XBPS_TARGET_CFLAGS="-mtune=generic"
|
||||
XBPS_TARGET_CXXFLAGS="$XBPS_TARGET_CFLAGS"
|
||||
XBPS_TARGET_FFLAGS=""
|
||||
XBPS_TARGET_FFLAGS="$XBPS_TARGET_CFLAGS"
|
||||
XBPS_TRIPLET="x86_64-unknown-linux-musl"
|
||||
XBPS_RUST_TARGET="${XBPS_TRIPLET}"
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
XBPS_TARGET_CFLAGS="-mtune=generic"
|
||||
XBPS_TARGET_CXXFLAGS="$XBPS_TARGET_CFLAGS"
|
||||
XBPS_TARGET_FFLAGS=""
|
||||
XBPS_TARGET_FFLAGS="$XBPS_TARGET_CFLAGS"
|
||||
XBPS_TRIPLET="x86_64-unknown-linux-gnu"
|
||||
XBPS_RUST_TARGET="${XBPS_TRIPLET}"
|
||||
|
|
|
@ -5,6 +5,6 @@ XBPS_TARGET_QEMU_MACHINE="aarch64"
|
|||
XBPS_CROSS_TRIPLET="aarch64-linux-musl"
|
||||
XBPS_CROSS_CFLAGS="-march=armv8-a"
|
||||
XBPS_CROSS_CXXFLAGS="$XBPS_CROSS_CFLAGS"
|
||||
XBPS_CROSS_FFLAGS=""
|
||||
XBPS_CROSS_FFLAGS="$XBPS_CROSS_CFLAGS"
|
||||
XBPS_CROSS_RUSTFLAGS="--sysroot=${XBPS_CROSS_BASE}/usr"
|
||||
XBPS_CROSS_RUST_TARGET="aarch64-unknown-linux-musl"
|
||||
|
|
|
@ -5,6 +5,6 @@ XBPS_TARGET_QEMU_MACHINE="aarch64"
|
|||
XBPS_CROSS_TRIPLET="aarch64-linux-gnu"
|
||||
XBPS_CROSS_CFLAGS="-march=armv8-a"
|
||||
XBPS_CROSS_CXXFLAGS="$XBPS_CROSS_CFLAGS"
|
||||
XBPS_CROSS_FFLAGS=""
|
||||
XBPS_CROSS_FFLAGS="$XBPS_CROSS_CFLAGS"
|
||||
XBPS_CROSS_RUSTFLAGS="--sysroot=${XBPS_CROSS_BASE}/usr"
|
||||
XBPS_CROSS_RUST_TARGET="aarch64-unknown-linux-gnu"
|
||||
|
|
|
@ -5,6 +5,6 @@ XBPS_TARGET_QEMU_MACHINE="arm"
|
|||
XBPS_CROSS_TRIPLET="arm-linux-musleabi"
|
||||
XBPS_CROSS_CFLAGS="-march=armv5te -msoft-float -mfloat-abi=soft"
|
||||
XBPS_CROSS_CXXFLAGS="$XBPS_CROSS_CFLAGS"
|
||||
XBPS_CROSS_FFLAGS=""
|
||||
XBPS_CROSS_FFLAGS="$XBPS_CROSS_CFLAGS"
|
||||
XBPS_CROSS_RUSTFLAGS="--sysroot=${XBPS_CROSS_BASE}/usr"
|
||||
XBPS_CROSS_RUST_TARGET="arm-unknown-linux-musleabi"
|
||||
|
|
|
@ -5,6 +5,6 @@ XBPS_TARGET_QEMU_MACHINE="arm"
|
|||
XBPS_CROSS_TRIPLET="arm-linux-gnueabi"
|
||||
XBPS_CROSS_CFLAGS="-march=armv5te -msoft-float -mfloat-abi=soft"
|
||||
XBPS_CROSS_CXXFLAGS="$XBPS_CROSS_CFLAGS"
|
||||
XBPS_CROSS_FFLAGS=""
|
||||
XBPS_CROSS_FFLAGS="$XBPS_CROSS_CFLAGS"
|
||||
XBPS_CROSS_RUSTFLAGS="--sysroot=${XBPS_CROSS_BASE}/usr"
|
||||
XBPS_CROSS_RUST_TARGET="arm-unknown-linux-gnueabi"
|
||||
|
|
|
@ -5,6 +5,6 @@ XBPS_TARGET_QEMU_MACHINE="arm"
|
|||
XBPS_CROSS_TRIPLET="arm-linux-musleabihf"
|
||||
XBPS_CROSS_CFLAGS="-march=armv6 -mfpu=vfp -mfloat-abi=hard"
|
||||
XBPS_CROSS_CXXFLAGS="$XBPS_CROSS_CFLAGS"
|
||||
XBPS_CROSS_FFLAGS=""
|
||||
XBPS_CROSS_FFLAGS="$XBPS_CROSS_CFLAGS"
|
||||
XBPS_CROSS_RUSTFLAGS="--sysroot=${XBPS_CROSS_BASE}/usr"
|
||||
XBPS_CROSS_RUST_TARGET="arm-unknown-linux-musleabihf"
|
||||
|
|
|
@ -5,6 +5,6 @@ XBPS_TARGET_QEMU_MACHINE="arm"
|
|||
XBPS_CROSS_TRIPLET="arm-linux-gnueabihf"
|
||||
XBPS_CROSS_CFLAGS="-march=armv6 -mfpu=vfp -mfloat-abi=hard"
|
||||
XBPS_CROSS_CXXFLAGS="$XBPS_CROSS_CFLAGS"
|
||||
XBPS_CROSS_FFLAGS=""
|
||||
XBPS_CROSS_FFLAGS="$XBPS_CROSS_CFLAGS"
|
||||
XBPS_CROSS_RUSTFLAGS="--sysroot=${XBPS_CROSS_BASE}/usr"
|
||||
XBPS_CROSS_RUST_TARGET="arm-unknown-linux-gnueabihf"
|
||||
|
|
|
@ -5,6 +5,6 @@ XBPS_TARGET_QEMU_MACHINE="arm"
|
|||
XBPS_CROSS_TRIPLET="armv7l-linux-musleabihf"
|
||||
XBPS_CROSS_CFLAGS="-march=armv7-a -mfpu=vfpv3 -mfloat-abi=hard"
|
||||
XBPS_CROSS_CXXFLAGS="$XBPS_CROSS_CFLAGS"
|
||||
XBPS_CROSS_FFLAGS=""
|
||||
XBPS_CROSS_FFLAGS="$XBPS_CROSS_CFLAGS"
|
||||
XBPS_CROSS_RUSTFLAGS="--sysroot=${XBPS_CROSS_BASE}/usr"
|
||||
XBPS_CROSS_RUST_TARGET="armv7-unknown-linux-musleabihf"
|
||||
|
|
|
@ -5,6 +5,6 @@ XBPS_TARGET_QEMU_MACHINE="arm"
|
|||
XBPS_CROSS_TRIPLET="armv7l-linux-gnueabihf"
|
||||
XBPS_CROSS_CFLAGS="-march=armv7-a -mfpu=vfpv3 -mfloat-abi=hard"
|
||||
XBPS_CROSS_CXXFLAGS="$XBPS_CROSS_CFLAGS"
|
||||
XBPS_CROSS_FFLAGS=""
|
||||
XBPS_CROSS_FFLAGS="$XBPS_CROSS_CFLAGS"
|
||||
XBPS_CROSS_RUSTFLAGS="--sysroot=${XBPS_CROSS_BASE}/usr"
|
||||
XBPS_CROSS_RUST_TARGET="armv7-unknown-linux-gnueabihf"
|
||||
|
|
|
@ -5,6 +5,6 @@ XBPS_TARGET_QEMU_MACHINE="i386"
|
|||
XBPS_CROSS_TRIPLET="i686-linux-musl"
|
||||
XBPS_CROSS_CFLAGS="-march=i686"
|
||||
XBPS_CROSS_CXXFLAGS="$XBPS_CROSS_CFLAGS"
|
||||
XBPS_CROSS_FFLAGS=""
|
||||
XBPS_CROSS_FFLAGS="$XBPS_CROSS_CFLAGS"
|
||||
XBPS_CROSS_RUSTFLAGS="--sysroot=${XBPS_CROSS_BASE}/usr"
|
||||
XBPS_CROSS_RUST_TARGET="i686-unknown-linux-musl"
|
||||
|
|
|
@ -5,6 +5,6 @@ XBPS_TARGET_QEMU_MACHINE="i386"
|
|||
XBPS_CROSS_TRIPLET="i686-pc-linux-gnu"
|
||||
XBPS_CROSS_CFLAGS="-march=i686"
|
||||
XBPS_CROSS_CXXFLAGS="$XBPS_CROSS_CFLAGS"
|
||||
XBPS_CROSS_FFLAGS=""
|
||||
XBPS_CROSS_FFLAGS="$XBPS_CROSS_CFLAGS"
|
||||
XBPS_CROSS_RUSTFLAGS="--sysroot=${XBPS_CROSS_BASE}/usr"
|
||||
XBPS_CROSS_RUST_TARGET="i686-unknown-linux-gnu"
|
||||
|
|
|
@ -5,6 +5,6 @@ XBPS_TARGET_QEMU_MACHINE="mips"
|
|||
XBPS_CROSS_TRIPLET="mips-linux-musl"
|
||||
XBPS_CROSS_CFLAGS="-mtune=mips32r2 -mabi=32 -msoft-float"
|
||||
XBPS_CROSS_CXXFLAGS="$XBPS_CROSS_CFLAGS"
|
||||
XBPS_CROSS_FFLAGS=""
|
||||
XBPS_CROSS_FFLAGS="$XBPS_CROSS_CFLAGS"
|
||||
XBPS_CROSS_RUSTFLAGS="--sysroot=${XBPS_CROSS_BASE}/usr"
|
||||
XBPS_CROSS_RUST_TARGET="mips-unknown-linux-musl"
|
||||
|
|
|
@ -5,6 +5,6 @@ XBPS_TARGET_QEMU_MACHINE="mipsel"
|
|||
XBPS_CROSS_TRIPLET="mipsel-linux-musl"
|
||||
XBPS_CROSS_CFLAGS="-mtune=mips32r2 -mabi=32 -msoft-float"
|
||||
XBPS_CROSS_CXXFLAGS="$XBPS_CROSS_CFLAGS"
|
||||
XBPS_CROSS_FFLAGS=""
|
||||
XBPS_CROSS_FFLAGS="$XBPS_CROSS_CFLAGS"
|
||||
XBPS_CROSS_RUSTFLAGS="--sysroot=${XBPS_CROSS_BASE}/usr"
|
||||
XBPS_CROSS_RUST_TARGET="mipsel-unknown-linux-musl"
|
||||
|
|
|
@ -5,6 +5,6 @@ XBPS_TARGET_QEMU_MACHINE="mipsel"
|
|||
XBPS_CROSS_TRIPLET="mipsel-linux-muslhf"
|
||||
XBPS_CROSS_CFLAGS="-mtune=mips32r2 -mabi=32 -mhard-float"
|
||||
XBPS_CROSS_CXXFLAGS="$XBPS_CROSS_CFLAGS"
|
||||
XBPS_CROSS_FFLAGS=""
|
||||
XBPS_CROSS_FFLAGS="$XBPS_CROSS_CFLAGS"
|
||||
XBPS_CROSS_RUSTFLAGS="--sysroot=${XBPS_CROSS_BASE}/usr"
|
||||
XBPS_CROSS_RUST_TARGET="mipsel-unknown-linux-musl"
|
||||
|
|
|
@ -5,6 +5,6 @@ XBPS_TARGET_QEMU_MACHINE="mips"
|
|||
XBPS_CROSS_TRIPLET="mips-linux-muslhf"
|
||||
XBPS_CROSS_CFLAGS="-mtune=mips32r2 -mabi=32 -mhard-float"
|
||||
XBPS_CROSS_CXXFLAGS="$XBPS_CROSS_CFLAGS"
|
||||
XBPS_CROSS_FFLAGS=""
|
||||
XBPS_CROSS_FFLAGS="$XBPS_CROSS_CFLAGS"
|
||||
XBPS_CROSS_RUSTFLAGS="--sysroot=${XBPS_CROSS_BASE}/usr"
|
||||
XBPS_CROSS_RUST_TARGET="mips-unknown-linux-musl"
|
||||
|
|
|
@ -5,6 +5,6 @@ XBPS_TARGET_QEMU_MACHINE="ppc"
|
|||
XBPS_CROSS_TRIPLET="powerpc-linux-musl"
|
||||
XBPS_CROSS_CFLAGS="-mtune=G4"
|
||||
XBPS_CROSS_CXXFLAGS="$XBPS_CROSS_CFLAGS"
|
||||
XBPS_CROSS_FFLAGS=""
|
||||
XBPS_CROSS_FFLAGS="$XBPS_CROSS_CFLAGS"
|
||||
XBPS_CROSS_RUSTFLAGS="--sysroot=${XBPS_CROSS_BASE}/usr"
|
||||
XBPS_CROSS_RUST_TARGET="powerpc-unknown-linux-musl"
|
||||
|
|
|
@ -5,6 +5,6 @@ XBPS_TARGET_QEMU_MACHINE="ppc"
|
|||
XBPS_CROSS_TRIPLET="powerpc-linux-gnu"
|
||||
XBPS_CROSS_CFLAGS="-mtune=G4"
|
||||
XBPS_CROSS_CXXFLAGS="$XBPS_CROSS_CFLAGS"
|
||||
XBPS_CROSS_FFLAGS=""
|
||||
XBPS_CROSS_FFLAGS="$XBPS_CROSS_CFLAGS"
|
||||
XBPS_CROSS_RUSTFLAGS="--sysroot=${XBPS_CROSS_BASE}/usr"
|
||||
XBPS_CROSS_RUST_TARGET="powerpc-unknown-linux-gnu"
|
||||
|
|
|
@ -5,6 +5,6 @@ XBPS_TARGET_QEMU_MACHINE="ppc64"
|
|||
XBPS_CROSS_TRIPLET="powerpc64-linux-musl"
|
||||
XBPS_CROSS_CFLAGS="-mcpu=970 -mtune=power9"
|
||||
XBPS_CROSS_CXXFLAGS="$XBPS_CROSS_CFLAGS"
|
||||
XBPS_CROSS_FFLAGS=""
|
||||
XBPS_CROSS_FFLAGS="$XBPS_CROSS_CFLAGS"
|
||||
XBPS_CROSS_RUSTFLAGS="--sysroot=${XBPS_CROSS_BASE}/usr"
|
||||
XBPS_CROSS_RUST_TARGET="powerpc64-unknown-linux-musl"
|
||||
|
|
|
@ -5,6 +5,6 @@ XBPS_TARGET_QEMU_MACHINE="ppc64"
|
|||
XBPS_CROSS_TRIPLET="powerpc64-linux-gnu"
|
||||
XBPS_CROSS_CFLAGS="-mcpu=970 -mtune=power9"
|
||||
XBPS_CROSS_CXXFLAGS="$XBPS_CROSS_CFLAGS"
|
||||
XBPS_CROSS_FFLAGS=""
|
||||
XBPS_CROSS_FFLAGS="$XBPS_CROSS_CFLAGS"
|
||||
XBPS_CROSS_RUSTFLAGS="--sysroot=${XBPS_CROSS_BASE}/usr"
|
||||
XBPS_CROSS_RUST_TARGET="powerpc64-unknown-linux-gnu"
|
||||
|
|
|
@ -5,6 +5,6 @@ XBPS_TARGET_QEMU_MACHINE="ppc64le"
|
|||
XBPS_CROSS_TRIPLET="powerpc64le-linux-musl"
|
||||
XBPS_CROSS_CFLAGS="-mtune=power9"
|
||||
XBPS_CROSS_CXXFLAGS="$XBPS_CROSS_CFLAGS"
|
||||
XBPS_CROSS_FFLAGS=""
|
||||
XBPS_CROSS_FFLAGS="$XBPS_CROSS_CFLAGS"
|
||||
XBPS_CROSS_RUSTFLAGS="--sysroot=${XBPS_CROSS_BASE}/usr"
|
||||
XBPS_CROSS_RUST_TARGET="powerpc64le-unknown-linux-musl"
|
||||
|
|
|
@ -5,6 +5,6 @@ XBPS_TARGET_QEMU_MACHINE="ppc64le"
|
|||
XBPS_CROSS_TRIPLET="powerpc64le-linux-gnu"
|
||||
XBPS_CROSS_CFLAGS="-mtune=power9"
|
||||
XBPS_CROSS_CXXFLAGS="$XBPS_CROSS_CFLAGS"
|
||||
XBPS_CROSS_FFLAGS=""
|
||||
XBPS_CROSS_FFLAGS="$XBPS_CROSS_CFLAGS"
|
||||
XBPS_CROSS_RUSTFLAGS="--sysroot=${XBPS_CROSS_BASE}/usr"
|
||||
XBPS_CROSS_RUST_TARGET="powerpc64le-unknown-linux-gnu"
|
||||
|
|
|
@ -5,6 +5,6 @@ XBPS_TARGET_QEMU_MACHINE="ppc"
|
|||
XBPS_CROSS_TRIPLET="powerpcle-linux-musl"
|
||||
XBPS_CROSS_CFLAGS="-mcpu=power8 -mtune=power9"
|
||||
XBPS_CROSS_CXXFLAGS="$XBPS_CROSS_CFLAGS"
|
||||
XBPS_CROSS_FFLAGS=""
|
||||
XBPS_CROSS_FFLAGS="$XBPS_CROSS_CFLAGS"
|
||||
XBPS_CROSS_RUSTFLAGS="--sysroot=${XBPS_CROSS_BASE}/usr"
|
||||
XBPS_CROSS_RUST_TARGET="powerpcle-unknown-linux-musl"
|
||||
|
|
|
@ -5,6 +5,6 @@ XBPS_TARGET_QEMU_MACHINE="ppc"
|
|||
XBPS_CROSS_TRIPLET="powerpcle-linux-gnu"
|
||||
XBPS_CROSS_CFLAGS="-mcpu=power8 -mtune=power9"
|
||||
XBPS_CROSS_CXXFLAGS="$XBPS_CROSS_CFLAGS"
|
||||
XBPS_CROSS_FFLAGS=""
|
||||
XBPS_CROSS_FFLAGS="$XBPS_CROSS_CFLAGS"
|
||||
XBPS_CROSS_RUSTFLAGS="--sysroot=${XBPS_CROSS_BASE}/usr"
|
||||
XBPS_CROSS_RUST_TARGET="powerpcle-unknown-linux-gnu"
|
||||
|
|
|
@ -5,6 +5,6 @@ XBPS_TARGET_QEMU_MACHINE="x86_64"
|
|||
XBPS_CROSS_TRIPLET="x86_64-linux-musl"
|
||||
XBPS_CROSS_CFLAGS="-mtune=generic"
|
||||
XBPS_CROSS_CXXFLAGS="$XBPS_CROSS_CFLAGS"
|
||||
XBPS_CROSS_FFLAGS=""
|
||||
XBPS_CROSS_FFLAGS="$XBPS_CROSS_CFLAGS"
|
||||
XBPS_CROSS_RUSTFLAGS="--sysroot=${XBPS_CROSS_BASE}/usr"
|
||||
XBPS_CROSS_RUST_TARGET="x86_64-unknown-linux-musl"
|
||||
|
|
|
@ -5,6 +5,6 @@ XBPS_TARGET_QEMU_MACHINE="x86_64"
|
|||
XBPS_CROSS_TRIPLET="x86_64-linux-gnu"
|
||||
XBPS_CROSS_CFLAGS="-mtune=generic"
|
||||
XBPS_CROSS_CXXFLAGS="$XBPS_CROSS_CFLAGS"
|
||||
XBPS_CROSS_FFLAGS=""
|
||||
XBPS_CROSS_FFLAGS="$XBPS_CROSS_CFLAGS"
|
||||
XBPS_CROSS_RUSTFLAGS="--sysroot=${XBPS_CROSS_BASE}/usr"
|
||||
XBPS_CROSS_RUST_TARGET="x86_64-unknown-linux-gnu"
|
||||
|
|
|
@ -19,10 +19,12 @@ if [ -z "$nopie" ]; then
|
|||
# Enable FORITFY_SOURCE=2
|
||||
CFLAGS="-fstack-clash-protection -D_FORTIFY_SOURCE=2 ${CFLAGS}"
|
||||
CXXFLAGS="-fstack-clash-protection -D_FORTIFY_SOURCE=2 ${CXXFLAGS}"
|
||||
FFLAGS="-fstack-clash-protection ${FFLAGS}"
|
||||
LDFLAGS="-Wl,-z,relro -Wl,-z,now ${LDFLAGS}"
|
||||
fi
|
||||
else
|
||||
CFLAGS="-fno-PIE ${CFLAGS}"
|
||||
CXXFLAGS="-fno-PIE ${CFLAGS}"
|
||||
FFLAGS="-fno-PIE ${FFLAGS}"
|
||||
LDFLAGS="-no-pie ${LDFLAGS}"
|
||||
fi
|
||||
|
|
|
@ -69,7 +69,7 @@ $(grep -E '^XBPS_.*' "$XBPS_CONFIG_FILE")
|
|||
XBPS_MASTERDIR=/
|
||||
XBPS_CFLAGS="$XBPS_CFLAGS"
|
||||
XBPS_CXXFLAGS="$XBPS_CXXFLAGS"
|
||||
XBPS_FFLAGS="-fPIC -pipe"
|
||||
XBPS_FFLAGS="$XBPS_FFLAGS"
|
||||
XBPS_CPPFLAGS="$XBPS_CPPFLAGS"
|
||||
XBPS_LDFLAGS="$XBPS_LDFLAGS"
|
||||
XBPS_HOSTDIR=/host
|
||||
|
|
|
@ -342,7 +342,7 @@ setup_pkg() {
|
|||
if [ -n "$cross" ]; then
|
||||
source_file $XBPS_CROSSPFDIR/${cross}.sh
|
||||
|
||||
_vars="TARGET_MACHINE CROSS_TRIPLET CROSS_CFLAGS CROSS_CXXFLAGS TARGET_QEMU_MACHINE"
|
||||
_vars="TARGET_MACHINE CROSS_TRIPLET CROSS_CFLAGS CROSS_CXXFLAGS CROSS_FFLAGS TARGET_QEMU_MACHINE"
|
||||
for f in ${_vars}; do
|
||||
eval val="\$XBPS_$f"
|
||||
if [ -z "$val" ]; then
|
||||
|
@ -507,7 +507,7 @@ setup_pkg() {
|
|||
|
||||
export CFLAGS="$XBPS_CFLAGS $XBPS_CROSS_CFLAGS $CFLAGS $dbgflags"
|
||||
export CXXFLAGS="$XBPS_CXXFLAGS $XBPS_CROSS_CXXFLAGS $CXXFLAGS $dbgflags"
|
||||
export FFLAGS="$XBPS_FFLAGS $XBPS_CROSS_FFLAGS $FFLAGS"
|
||||
export FFLAGS="$XBPS_FFLAGS $XBPS_CROSS_FFLAGS $FFLAGS $dbgflags"
|
||||
export CPPFLAGS="$XBPS_CPPFLAGS $XBPS_CROSS_CPPFLAGS $CPPFLAGS"
|
||||
export LDFLAGS="$XBPS_LDFLAGS $XBPS_CROSS_LDFLAGS $LDFLAGS"
|
||||
|
||||
|
@ -571,6 +571,7 @@ setup_pkg() {
|
|||
export CXXFLAGS_target="$CXXFLAGS"
|
||||
export CPPFLAGS_target="$CPPFLAGS"
|
||||
export LDFLAGS_target="$LDFLAGS"
|
||||
export FFLAGS_target="$FFLAGS"
|
||||
# Host tools
|
||||
export CC_host="cc"
|
||||
export CXX_host="g++"
|
||||
|
@ -591,6 +592,7 @@ setup_pkg() {
|
|||
export CXXFLAGS_host="$XBPS_CXXFLAGS"
|
||||
export CPPFLAGS_host="$XBPS_CPPFLAGS"
|
||||
export LDFLAGS_host="$XBPS_LDFLAGS"
|
||||
export FFLAGS_host="$XBPS_FFLAGS"
|
||||
# Rust flags which are passed to rustc
|
||||
export RUSTFLAGS="$XBPS_CROSS_RUSTFLAGS"
|
||||
# Rust target, which differs from our triplets
|
||||
|
@ -625,10 +627,10 @@ setup_pkg() {
|
|||
# Unset cross evironment variables
|
||||
unset CC_target CXX_target CPP_target GCC_target FC_target LD_target AR_target AS_target
|
||||
unset RANLIB_target STRIP_target OBJDUMP_target OBJCOPY_target NM_target READELF_target
|
||||
unset CFLAGS_target CXXFLAGS_target CPPFLAGS_target LDFLAGS_target
|
||||
unset CFLAGS_target CXXFLAGS_target CPPFLAGS_target LDFLAGS_target FFLAGS_target
|
||||
unset CC_host CXX_host CPP_host GCC_host FC_host LD_host AR_host AS_host
|
||||
unset RANLIB_host STRIP_host OBJDUMP_host OBJCOPY_host NM_host READELF_host
|
||||
unset CFLAGS_host CXXFLAGS_host CPPFLAGS_host LDFLAGS_host
|
||||
unset CFLAGS_host CXXFLAGS_host CPPFLAGS_host LDFLAGS_host FFLAGS_host
|
||||
unset RUSTFLAGS
|
||||
fi
|
||||
|
||||
|
|
|
@ -25,11 +25,12 @@
|
|||
#XBPS_INSTALL_ARGS=""
|
||||
|
||||
# [OPTIONAL]
|
||||
# Native Compilation/Preprocessor flags for C and C++. Additional settings
|
||||
# Native Compilation/Preprocessor flags for C/C++/Fortran. Additional settings
|
||||
# for the target architecture are also declared in common/build-profiles/<arch>.sh.
|
||||
#
|
||||
XBPS_CFLAGS="-O2 -pipe"
|
||||
XBPS_CXXFLAGS="${XBPS_CFLAGS}"
|
||||
XBPS_FFLAGS="${XBPS_CFLAGS}"
|
||||
|
||||
# [OPTIONAL]
|
||||
# Linker flags passed to the compiler.
|
||||
|
|
Loading…
Reference in a new issue