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

pthread missing for building in FreeBSD #2149

Closed
pittagurneyi opened this issue Nov 27, 2023 · 1 comment · Fixed by #2150
Closed

pthread missing for building in FreeBSD #2149

pittagurneyi opened this issue Nov 27, 2023 · 1 comment · Fixed by #2150

Comments

@pittagurneyi
Copy link

The following was necessary to successfully build cx_Freeze in FreeBSD:

--- setup.py.orig	2023-11-26 22:54:18.026772000 +0000
+++ setup.py	2023-11-26 22:55:26.687658000 +0000
@@ -52,6 +52,8 @@
         library_dirs = ext.library_dirs or []
         libraries = self.get_libraries(ext)
         extra_args = ext.extra_link_args or []
+        if PLATFORM.startswith('freebsd'):
+            libraries.append('pthread')
         if IS_MINGW or IS_WINDOWS:
             compiler_type = self.compiler.compiler_type
             # support for delay load [windows]

Please patch it in the next version, so we can stop manually doing so in the FreeBSD port.

Thanks!

@marcelotduarte
Copy link
Owner

Release 6.15.11 is out!

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 a pull request may close this issue.

2 participants