Allow building on Darwin/arm64 #34

Merged
Torrekie merged 1 commits from master into master 2021-11-15 03:27:27 +00:00
Torrekie commented 2021-11-13 11:11:41 +00:00 (Migrated from github.com)

Changes:

  1. -soname should be -install_name on Darwin
  2. Version suffix should placed before extension suffix (libucontext.so.1 -> libucontext.1.dylib)
  3. Check for architecture specific include directory, and include it while building
  4. EXPORT_UNPREFIXED macro shouldn't be set since Darwin don't support aliases
  5. Choose correct subdir for arm64
  6. Use -dynamiclib instead of -shared on Darwin for adding version info (-current_version and -compatibility_version)
Changes: 1. `-soname` should be `-install_name` on Darwin 2. Version suffix should placed before extension suffix (libucontext.so.1 -> libucontext.1.dylib) 3. Check for architecture specific include directory, and include it while building 4. `EXPORT_UNPREFIXED` macro shouldn't be set since Darwin don't support aliases 5. Choose correct subdir for arm64 6. Use `-dynamiclib` instead of `-shared` on Darwin for adding version info (`-current_version` and `-compatibility_version`)
Sign in to join this conversation.
No reviewers
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: ariadne/libucontext#34
There is no content yet.