diff options
author | qyt <486179@qq.com> | 2023-11-30 11:22:31 +0800 |
---|---|---|
committer | Mark Adler <madler@alumni.caltech.edu> | 2024-03-29 18:36:16 -0700 |
commit | 4f8a17e8cbf5856d8a27e112ed41a110f54129dd (patch) | |
tree | a6f91eaa4165dafd646a141e0300e22fe30226f6 /configure | |
parent | 0f51fb4933fc9ce18199cb2554dacea8033e7fd3 (diff) | |
download | zlib-4f8a17e8cbf5856d8a27e112ed41a110f54129dd.tar.gz zlib-4f8a17e8cbf5856d8a27e112ed41a110f54129dd.tar.bz2 zlib-4f8a17e8cbf5856d8a27e112ed41a110f54129dd.zip |
Add -fPIC to compiler options for static library build on Android.
Diffstat (limited to 'configure')
-rwxr-xr-x | configure | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -197,8 +197,8 @@ show $cc -c $test.c | |||
197 | if test "$gcc" -eq 1 && ($cc -c $test.c) >> configure.log 2>&1; then | 197 | if test "$gcc" -eq 1 && ($cc -c $test.c) >> configure.log 2>&1; then |
198 | echo ... using gcc >> configure.log | 198 | echo ... using gcc >> configure.log |
199 | CC="$cc" | 199 | CC="$cc" |
200 | CFLAGS="${CFLAGS--O3}" | 200 | CFLAGS="${CFLAGS--O3} -fPIC" |
201 | SFLAGS="${CFLAGS--O3} -fPIC" | 201 | SFLAGS="${CFLAGS--O3}" |
202 | if test "$ARCHS"; then | 202 | if test "$ARCHS"; then |
203 | CFLAGS="${CFLAGS} ${ARCHS}" | 203 | CFLAGS="${CFLAGS} ${ARCHS}" |
204 | LDFLAGS="${LDFLAGS} ${ARCHS}" | 204 | LDFLAGS="${LDFLAGS} ${ARCHS}" |