[PATCH][libvirt-ruby] Rakefile: Build on Mac OS-X cleanly

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



https://bugzilla.redhat.com/show_bug.cgi?id=1161338

There's this bug report, which suggests using '-arch x86_64' on
Macs. Otherwise one gets unclear error messages when building.

Signed-off-by: Michal Privoznik <mprivozn@xxxxxxxxxx>
---
 Rakefile | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/Rakefile b/Rakefile
index 5ea1f41..e73eaee 100644
--- a/Rakefile
+++ b/Rakefile
@@ -148,6 +148,10 @@ SPEC = Gem::Specification.new do |s|
     s.license = "LGPLv2"
 end
 
+if RUBY_PLATFORM =~ /universal.x86_64-darwin/
+    ENV['ARCHFLAGS'] = '-arch x86_64'
+end
+
 Gem::PackageTask.new(SPEC) do |pkg|
     pkg.need_tar = true
     pkg.need_zip = true
-- 
2.0.5

--
libvir-list mailing list
libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list




[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]