#265 closed defect (fixed)
[Mac OS X] premake fails to include libxml2 with threadding enabled
Reported by: | espes | Owned by: | |
---|---|---|---|
Priority: | Should Have | Milestone: | Pre-Alpha 1 |
Component: | Core engine | Keywords: | mac premake libxml2 |
Cc: | Simon Brenner | Patch: |
Description
libxml2 checks for thread support by not only checking if it was compiled in, but also by checking whether "_REENTRANT" or "MT" is set. Usually, AFAIK, these are set on *nix when pthread is included, but since on OS X GNU threads are included in libSystem, this does not happen.
I propose the attached fix, but if anyone has a better idea, feel free.
Attachments (1)
Change History (7)
by , 15 years ago
comment:2 by , 15 years ago
Cc: | added |
---|
Hmm, sounds like something that pkg-config should handle for us. Does your "pkg-config libxml-2.0 --cflags" list the required define? (I don't see it on any of my systems, but that could be that my libxml installs weren't configured for threadedness)
comment:3 by , 15 years ago
"pkg-config libxml-2.0 --cflags" just returns the include on my system. AFAIK, thread safety is a default cofig option in libxml2, and it is enabled in both the version OS X comes with, and the version from macports.
comment:4 by , 15 years ago
Resolution: | → fixed |
---|---|
Status: | new → closed |
Should be fixed in r7078. Thanks!
comment:6 by , 12 years ago
Milestone: | → Pre-Alpha 1 |
---|
exter_libs.lua patch