aboutsummaryrefslogtreecommitdiff
path: root/configure
diff options
context:
space:
mode:
authorqyt <486179@qq.com>2023-11-30 11:22:31 +0800
committerMark Adler <madler@alumni.caltech.edu>2024-03-29 18:36:16 -0700
commit4f8a17e8cbf5856d8a27e112ed41a110f54129dd (patch)
treea6f91eaa4165dafd646a141e0300e22fe30226f6 /configure
parent0f51fb4933fc9ce18199cb2554dacea8033e7fd3 (diff)
downloadzlib-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-xconfigure4
1 files 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
197if test "$gcc" -eq 1 && ($cc -c $test.c) >> configure.log 2>&1; then 197if 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}"