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

Portability – FreeBSD and further #12

Closed
fpeterschmitt opened this issue Jul 16, 2013 · 1 comment
Closed

Portability – FreeBSD and further #12

fpeterschmitt opened this issue Jul 16, 2013 · 1 comment
Assignees

Comments

@fpeterschmitt
Copy link
Contributor

If you care a little for BSD systems, and notably FreeBSD, you can take in account this patch: http:https://peterschmitt.fr/liblogicalaccess-freebsd-port.txt

In the first line we have link targets that are FreeBSD specific (and I don't know about others), dl is part of libc. I don't know how to tell CMake to take different link for one precise OS.

It is possible too to use the unix define for any BSD system. If you want to get some specific behavior, use FreeBSD, linux and so on.

Edit: reload the patch to get the unix define used and CMakeLists.txt modified for GNU/Linux and FreeBSD.

@ghost ghost assigned Liryna Jul 16, 2013
@Maxhy
Copy link
Member

Maxhy commented Jul 16, 2013

Ok I will setup a FreeBSD build machine for test and then apply your patch adding a test to link with dl if the OS is not FreeBSD.
Thanks for sending the patch.

Maxhy pushed a commit that referenced this issue Jul 17, 2013
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

No branches or pull requests

3 participants