Ticket #44 (closed defect: fixed)
Shared libraries on OS X aren't .so; breaks Python tests
| Reported by: | broder@… | Owned by: | |
|---|---|---|---|
| Priority: | major | Milestone: | 3.0 release |
| Component: | zephyr.build | Version: | 3.0~beta.2362 |
| Keywords: | Cc: | ||
| Platform: | MacOS X |
Description
Shared libraries on Mac OS X are built with the .dylib extension. Because zephyr/lib/zephyr_tests.py specifically tries to load libzephyr.so.4.0.0, that fails on OS X, which causes the libzephyr build to fail as well.
For even more fun, OS X's shared libraries puts the version number before the extension instead of after, so it's libzephyr.4.0.0.dylib.
Since libtool creates a simple libzephyr.{so,dylib} symlink in .libs as part of its build process, I think it's sufficient to load that instead, conditionalizing on sys.platform to pick the correct extension.
Attachments
Change History
Note: See
TracTickets for help on using
tickets.

