Closed klette closed 4 years ago
Hi!
I've updated this PR replacing the change in compiler flags to using strip
for removing the symbols.
This aligns with the way GDAL upstream is creating their official Docker images.
This is awesome @klette - Many thanks 👍
By default, GDAL includes debug symbols in the compiled libraries and binaries.
This patch runs alls libraries and binaries through
strip -s
before gzipping for S3 upload.GDAL also got an extra configure flag to remove internal symbols during the build, shaving another MB from the archives.
Looking at the size of the tarballs we see the following changes:
Baseline master:
Baseline + strip:
Baseline + strip + --with-hide-internal-symbols:
The same strategy for reducing the size of the compiled assets is used by GDAL upstream for their official Docker images.