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

Fix cmake gnu conventions #52

Open
wants to merge 4 commits into
base: develop
Choose a base branch
from

Conversation

SoapGentoo
Copy link

Hi @seanmiddleditch
I'd like to merge some fixes that are important for packages, as they improve make handling libtelnet for us downstream much easier.

CMakeLists.txt Outdated
set_target_properties(libtelnet
PROPERTIES
VERSION ${PROJECT_VERSION}
SOVERSION ${PROJECT_VERSION})
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

NAK on this line: current master branch uses -version-info 2:0:0, so using PROJECT_VERSION would result in 0.30.0 which cannot be desired...

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We can change it to 2 if you prefer, it's just that the current situation is just as bad, namely that it adds no SOVERSION

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The proper way would be to check whether/how the ABI changed... I agree that the current situation is bad and I would call it a regression compared to the former autotools approach... but when adding SOVERSION now we should take the time required to make it a real solution...

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Repushed, now:

readelf -d temp/usr/local/lib64/liblibtelnet.so | grep SONAME
0x000000000000000e (SONAME)             Library soname: [liblibtelnet.so.2]

Which mirrors the output of -version-info 2:0:0

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I could live with this, thanks 👍

@thefallentree
Copy link
Contributor

merged in fluffos@b70c7e8

@SoapGentoo
Copy link
Author

@Shea690901 any chance of getting this merged?

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.

None yet

3 participants