From: Vincent Bernat Date: Mon, 24 Jun 2013 23:25:04 +0000 (+0200) Subject: osx: don't try to build universal binaries X-Git-Tag: 0.7.6~19 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5b90c4f5c054deda6a72520adb393426800e4d32;p=thirdparty%2Flldpd.git 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`. --- 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