Skip to content

Commit c6e0931

Browse files
Build universal binary for libffi (#258)
1 parent 6133983 commit c6e0931

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

omnibus/config/software/libffi.rb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,8 @@
3131

3232
build do
3333
env = with_standard_compiler_flags(with_embedded_path)
34+
env["CFLAGS"] << " -fPIC -arch arm64 -arch x86_64"
35+
env["CPPFLAGS"] = env["CPPFLAGS"].gsub("-arch arm64 -arch x86_64", "")
3436

3537
env["INSTALL"] = "/opt/freeware/bin/install" if aix?
3638

0 commit comments

Comments
 (0)