Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add -O2 to GEOS CFLAGS #232

Closed
wants to merge 2 commits into from
Closed

add -O2 to GEOS CFLAGS #232

wants to merge 2 commits into from

Conversation

jaakkor2
Copy link
Contributor

Looks like dynamic libraries of GEOS are unstripped and huge in size.

In .julia\artifacts\899bb0e10d4accc34dff74b1c82ffbfe56dc8b23\bin, libgeos-3-8-0.dll and libgeos_c-1.dll are 57339 KB and 3239 KB respectively, whereas in .julia\conda\3\pkgs\geos-3.8.0-h33f27b4_0\Library\bin, geos.dll and geos_c.dll are 1346 KB and 346 KB respectively.

Putting here CFLAGS="${CFLAGS} -O2" to the ./configure line.

But somehow I would expect the builder defaults should produce reasonably-sized binaries?

Looks like dynamic libraries of GEOS are unstripped and huge in size.

In `.julia\artifacts\899bb0e10d4accc34dff74b1c82ffbfe56dc8b23\bin`, `libgeos-3-8-0.dll` and `libgeos_c-1.dll` are 57339 KB and 3239 KB respectively, whereas in `.julia\conda\3\pkgs\geos-3.8.0-h33f27b4_0\Library\bin`, `geos.dll` and `geos_c.dll` are 1346 KB and 346 KB respectively.

Putting here `CFLAGS="${CFLAGS} -O2"` to the `./configure` line.

But somehow I would expect the builder defaults should produce reasonably-sized binaries?
G/GEOS/build_tarballs.jl Outdated Show resolved Hide resolved
@giordano
Copy link
Member

But somehow I would expect the builder defaults should produce reasonably-sized binaries?

BinaryBuilder just does whatever is told to do 🙂

@visr
Copy link
Contributor

visr commented Nov 25, 2019

Nice, is this similar to what happens in CMake with -DCMAKE_BUILD_TYPE=Release?
For GEOS they modernized the CMake usage in this release, we may also want to consider switching to that, since it seems like all GEOS CI is using this as well now, and it's usage is better documented.

https://github.com/libgeos/geos/blob/3.8.0/INSTALL

@jaakkor2
Copy link
Contributor Author

Judging from https://github.com/JuliaBinaryWrappers/GEOS_jll.jl/releases/tag/GEOS-v3.8.0%2B1 , the files are already compiled with -O2 before this PR, but the dll are large in size. Therefore this PR is not effective to reduce the size. Closing this PR.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants