mirror of https://github.com/madler/zlib
Add -fPIC to compiler options for static library build on Android.
This commit is contained in:
parent
0f51fb4933
commit
4f8a17e8cb
|
@ -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…
Reference in New Issue