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`.
# 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