summaryrefslogtreecommitdiff
path: root/docs/INSTALL
diff options
context:
space:
mode:
authorDan Fandrich <dan@coneharvesters.com>2012-09-03 22:35:46 +0200
committerDan Fandrich <dan@coneharvesters.com>2012-09-03 22:41:03 +0200
commitb6a141ea8a5f814d52d350d4c251e202e727b44d (patch)
tree3afa04b9c33b824e335e91d52ad5c43990632596 /docs/INSTALL
parentca84361e4b0d6b0f45a9a874d376cb598bc6803d (diff)
downloadcurl-b6a141ea8a5f814d52d350d4c251e202e727b44d.tar.gz
Updated build docs w.r.t. Android and binary sizes
Diffstat (limited to 'docs/INSTALL')
-rw-r--r--docs/INSTALL11
1 files changed, 6 insertions, 5 deletions
diff --git a/docs/INSTALL b/docs/INSTALL
index 314c83540..eac3cd555 100644
--- a/docs/INSTALL
+++ b/docs/INSTALL
@@ -970,8 +970,9 @@ REDUCING SIZE
The GNU compiler and linker have a number of options that can reduce the
size of the libcurl dynamic libraries on some platforms even further.
Specify them by providing appropriate CFLAGS and LDFLAGS variables on the
- configure command-line:
- CFLAGS="-ffunction-sections -fdata-sections" \
+ configure command-line, e.g.
+ CFLAGS="-Os -ffunction-sections -fdata-sections \
+ -fno-unwind-tables -fno-asynchronous-unwind-tables" \
LDFLAGS="-Wl,-s -Wl,-Bsymbolic -Wl,--gc-sections"
Be sure also to strip debugging symbols from your binaries after
@@ -981,9 +982,9 @@ REDUCING SIZE
.comment section).
Using these techniques it is possible to create a basic HTTP-only shared
- libcurl library for i386 Linux platforms that is only 101 KiB in size, and
- an FTP-only library that is 105 KiB in size (as of libcurl version 7.21.5,
- using gcc 4.4.3).
+ libcurl library for i386 Linux platforms that is only 106 KiB in size, and
+ an FTP-only library that is 108 KiB in size (as of libcurl version 7.27.0,
+ using gcc 4.6.3).
You may find that statically linking libcurl to your application will
result in a lower total size than dynamically linking.