🔒 Repository is read-only – file editing is disabled.

PaganLinux/tmp-gmp-test.sh main

12 linii Raw ← Powrót
123456789101112
#!/bin/bash
ls /var/cache/pagbuild/sources/ | grep -iE "grep|gmp" 
echo "=== GMP with CC ==="
rm -rf /tmp/gmptest && mkdir -p /tmp/gmptest
tar -xJf /var/cache/pagbuild/sources/gmp-6.3.0.tar.xz -C /tmp/gmptest 2>&1
cd /tmp/gmptest/gmp-6.3.0
export CFLAGS="-D_GNU_SOURCE -Wno-error=implicit-function-declaration -Wno-error=int-conversion -Wno-error=return-type -Wno-error=maybe-uninitialized -Wno-error=incompatible-pointer-types -Wno-error=discarded-qualifiers"
export CPPFLAGS=-D_GNU_SOURCE
export CC=/usr/bin/gcc
./configure --prefix=/usr --build=x86_64-unknown-linux-gnu --enable-cxx --docdir=/usr/share/doc/gmp-6.3.0 > /tmp/gmp-cfg.log 2>&1
echo "GMP_CC_RC=$?"
tail -4 /tmp/gmp-cfg.log