From 4f8a17e8cbf5856d8a27e112ed41a110f54129dd Mon Sep 17 00:00:00 2001 From: qyt <486179@qq.com> Date: Thu, 30 Nov 2023 11:22:31 +0800 Subject: [PATCH] Add -fPIC to compiler options for static library build on Android. --- configure | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/configure b/configure index 7e71a12..97f689e 100755 --- a/configure +++ b/configure @@ -197,8 +197,8 @@ show $cc -c $test.c if test "$gcc" -eq 1 && ($cc -c $test.c) >> configure.log 2>&1; then echo ... using gcc >> configure.log CC="$cc" - CFLAGS="${CFLAGS--O3}" - SFLAGS="${CFLAGS--O3} -fPIC" + CFLAGS="${CFLAGS--O3} -fPIC" + SFLAGS="${CFLAGS--O3}" if test "$ARCHS"; then CFLAGS="${CFLAGS} ${ARCHS}" LDFLAGS="${LDFLAGS} ${ARCHS}"