Skip to content

Commit

Permalink
Add -fPIC to compiler options for static library build on Android.
Browse files Browse the repository at this point in the history
  • Loading branch information
xengine-qyt authored and madler committed Mar 30, 2024
1 parent 0f51fb4 commit 4f8a17e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions configure
Original file line number Diff line number Diff line change
Expand Up @@ -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}"
Expand Down

0 comments on commit 4f8a17e

Please sign in to comment.