Skip to content
This repository has been archived by the owner on Oct 28, 2020. It is now read-only.

macOS 'universal' binary support #4

Open
vickenty opened this issue Oct 2, 2017 · 0 comments
Open

macOS 'universal' binary support #4

vickenty opened this issue Oct 2, 2017 · 0 comments

Comments

@vickenty
Copy link
Owner

vickenty commented Oct 2, 2017

From #2 (comment)

Perl interpreters shipped with macOS Sierra (and possibly others) are built as universal binaries, and the same applies to XS extensions.

Since we build C glue using the same options, C compiler produces a static library which is also a universal binary. rustc is currently not able to link to such libraries:

warning: warning: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib: archive library: /Users/daniel/code/perl-xs/t/target/release/build/perl-sys-4230308055e1a1c1/out/libperlsys.a will be fat and ar(1) will not be able to operate on it
error: failed to add native library /Users/daniel/code/perl-xs/t/target/release/build/perl-sys-4230308055e1a1c1/out/libperlsys.a: File too small to be an archive
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant