Skip to content

CMakeLists.txt: default to shared libraries by default#53

Merged
dajobe merged 1 commit intodajobe:masterfrom
trofi:shared-by-default
Dec 28, 2022
Merged

CMakeLists.txt: default to shared libraries by default#53
dajobe merged 1 commit intodajobe:masterfrom
trofi:shared-by-default

Conversation

@trofi
Copy link
Copy Markdown
Contributor

@trofi trofi commented Jul 24, 2022

raptor2 provides a library and depends on a few other libraries
on it's own (like libxml2).

Some downstream projects are not very careful to include all
the needed libraries from .pc files and use just raptor2 one.

This sometimes causes linkage failures like guitarix:
https://hydra.nixos.org/log/4hznma7pl7wvjdhm3x2lr84zpj07s2ax-guitarix-0.42.1.drv
In this case linkage failure happens via underlinked liblrdf.so.

While it's a bug in liblrdf.so I think it would be reasonable
to enable shared libraries by default for use in distributions as is.

This change enables shared library by default.

raptor2 provides a library and depends on a few other libraries
on it's own (like libxml2).

Some downstream projects are not very careful to include all
the needed libraries from .pc files and use just raptor2 one.

This sometimes causes linkage failures like `guitarix`:
https://hydra.nixos.org/log/4hznma7pl7wvjdhm3x2lr84zpj07s2ax-guitarix-0.42.1.drv
In this case linkage failure happens via underlinked `liblrdf.so`.

While it's a bug in `liblrdf.so` I think it would be reasonable
to enable shared libraries by default for use in distributions as is.

This change enables shared library bu default.
@dajobe dajobe merged commit 67289e1 into dajobe:master Dec 28, 2022
@trofi trofi deleted the shared-by-default branch December 28, 2022 09:21
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.

2 participants