Peter Åstrand (astrand)
97eeefd771
Link zlib statically on all platforms
The API and ABI isn't as stable as we need, so it isn't safe to
link it dynamically even on Linux.
pirms 5 gadiem
Peter Åstrand (astrand)
242c5b2c8a
Add RandR support for x0vncserver
Change Xserver screen through libXrandr. For complex configurations,
all outputs must have corresponding size modes. As a special case, if
the client requests a single screen with an odd size (for example when
adjusting the size of a non-fullscreen vncviewer), find a smaller
suitable mode, and reduce the framebuffer size as well.
pirms 6 gadiem
Pierre Ossman
82e753d4e1
Add libpng as a dependency for freetype for static builds
Newer versions of Freetype requires libpng as well.
pirms 6 gadiem
Pierre Ossman
b74728f9d6
Add option to enable thread sanitizer
pirms 8 gadiem
DRC
2a2e2c3611
Allow static linking against only the GCC libs
pirms 8 gadiem
Pierre Ossman
86640e8f91
Add address sanitizer switch
Useful for debugging memory leaks and access violations. It is
not available on Windows though, and there is some problem compiling
ObjectiveC++ with it turned on.
pirms 8 gadiem
Pierre Ossman
95763a63e8
GnuTLS needs socket libraries so include them in the static link
pirms 9 gadiem
Peter Åstrand (astrand)
c4bc5a8f0e
Build fixes for modern versions of binutils.
Need to explicitly list DSOs.
pirms 9 gadiem
Pierre Ossman
cc8c6a296f
Drop bundled zlib
We're not doing a sufficient job of keeping this updated so list
it as an external requirement instead.
pirms 9 gadiem
Brian P. Hinz
44759765fc
Static build fix - only attempt to link against libtasn1 if it's present
GnuTLS may be compiled without external libtasn1, so we shouldn't try
to link against it unless it's actually present.
pirms 9 gadiem
Brian P. Hinz
37c2f4da50
Back out previous change
Needed to merge upstream changes in before creating pull request.
pirms 9 gadiem
Brian P. Hinz
2773ff9371
Static build fix - only attempt to link against libtasn1 if it's present
GnuTLS may be compiled without external libtasn1, so we shouldn't try
to link against it unless it's actually present.
pirms 9 gadiem
Pierre Ossman
df3cc42631
Handle mingw circular dependencies in base libraries
Our link order should now match the built-in library list.
pirms 9 gadiem
Pierre Ossman
ced99a9dba
Use dynamic builds by default
Static builds are the special case, so it should be left off
by default.
pirms 9 gadiem
Pierre Ossman
5b9303a697
Include gettext and zlib in static GnuTLS link
This is needed to make sure they are always included, and in the
proper order.
pirms 9 gadiem
Pierre Ossman
95491397a5
Only link with crypt32 on Windows
crypt32 is a Windows thing, and it is used no matter the crypto
backend.
pirms 9 gadiem
Pierre Ossman
4790e114da
Put quotes around entire static link variables
CMake is very aggressive about minimising the list of libraries,
so we need to be similarily aggressive about quotes to make sure
we get everything we want and in the correct order.
pirms 9 gadiem
Brian P. Hinz
a6d6dbb5b0
Add in missing dependency for windows builds.
Commit f95272d
created some undefined references in GnuTLS.
pirms 9 gadiem
Pierre Ossman
f95272de30
Extend "static" build option
Try to link as much as possible statically in an effort to produce
binaries that can be run everywhere.
pirms 9 gadiem