From 5b90c4f5c054deda6a72520adb393426800e4d32 Mon Sep 17 00:00:00 2001 From: Vincent Bernat Date: Tue, 25 Jun 2013 01:25:04 +0200 Subject: [PATCH] osx: don't try to build universal binaries The use of multiple arch is not safe with autotools. I believe that libevent compute some arch-dependent stuff at configure-time. Just say in README.md that the package will only work for the same version of OSX and the same architecture. For the future: - real universal binaries can be built by configuring and building each arch into a separate directory, then merge the result with `lipo`. - building a package for an older versions of Max OS X can be done by using `-mmacosx-version-min=10.6` and `-isysroot /Developer/SDKs/MacOSX10.5.sdk` on both `CFLAGS` and `LDFLAGS`. --- README.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index c8fe955c..1cac5e27 100644 --- a/README.md +++ b/README.md @@ -80,10 +80,10 @@ simpler alternatives: # Or, for the latest version: brew install https://raw.github.com/vincentbernat/lldpd/master/osx/lldpd.rb - 2. Build an OSX installer package: + 2. Build an OSX installer package which should work on the same + version of OS X, on the same architecture: - ./configure CC="gcc -arch i386 -arch x86_64" CPP="gcc -E" \ - --prefix=/usr --sysconfdir=/etc --with-embedded-libevent + ./configure --prefix=/usr --sysconfdir=/etc --with-embedded-libevent make -C osx pkg If you don't follow the above procedures, you will have to create the -- 2.39.5