Certainly.  You are welcome to set something up!  I was too lazy to
do it myself...

:)

I'm currently looking at size and symbol differences of libfreetype (on Fedora 27 x86_64, GCC 7.3.1) when compiling with Autotools and CMake. I built the shared lib both times without changing any options.

Autotools:
```
Library configuration:
  external zlib: yes (pkg-config)
  bzip2:         yes (pkg-config)
  libpng:        yes (pkg-config)
  harfbuzz:      yes (pkg-config)
```
Size after `strip --strip-debug`: 756000 bytes
Defined external symbols (`nm -g --defined-only`):
https://paste.fedoraproject.org/paste/6jmubTV82kFM3y5inTmEzw

Looking good, matches what I remember of the Windows DLL printout.


CMake:
```
-- Building with ZLIB
-- Building with BZip2
-- Building with PNG
-- Found PkgConfig: /usr/bin/pkg-config (found version "1.3.12")
-- Checking for module 'harfbuzz>=0.9.7'
--   Found harfbuzz, version 1.4.8
-- Checking for module 'harfbuzz-icu>=0.9.18'
--   Found harfbuzz-icu, version 1.4.8
-- Building with HarfBuzz
```
Size after `strip --strip-debug`: 1060536 bytes
Defined external symbols (`nm -g --defined-only`):
https://paste.fedoraproject.org/paste/9pJOmUbKK2hzuKUu2XXgSw

Looking less stellar, lots of private module functions exported that shouldn't be!

Investigating. @Alexei is this maybe what you meant by defining DLL_EXPORT?

_______________________________________________
Freetype-devel mailing list
Freetype-devel@nongnu.org
https://lists.nongnu.org/mailman/listinfo/freetype-devel

Reply via email to