commit e7fde2a

chld  ·  2026-09-05 15:25:42 +0000 UTC
parent 0555004
python: cflags
1 files changed,  +2, -1
+2, -1
 1@@ -59,7 +59,7 @@ EOF
 2     ./configure \
 3         --prefix="$PREFIX" \
 4         LDFLAGS="-static -lssl -lpthread -lm" \
 5-	CFLAGS="-I/include -I/include/openssl" \
 6+	CFLAGS="-Wno-error=int-conversion -Wno-error=implicit-function-declaration -I/include -I/include/openssl" \
 7         --disable-shared \
 8         OPENSSL_LIBS="-lssl" \
 9         --with-static-libpython \
10@@ -67,6 +67,7 @@ EOF
11         --without-ensurepip || die "configure failed"
12 
13     msg "building python3..."
14+    sed -i 's/-Werror=implicit-function-declaration//g' Makefile
15     make -j"$NPROC" OPENSSL_LIBS="-lssl" LDFLAGS="-static -lssl -lpthread -lm"
16     make DESTDIR="$PKG" install || die "make install failed"
17 }