Add -fPIC to compiler options for static library build on Android.

pull/989/head
qyt 1 year ago committed by Mark Adler
parent 0f51fb4933
commit 4f8a17e8cb
  1. 4
      configure

4
configure vendored

@ -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}"

Loading…
Cancel
Save