]> git.ipfire.org Git - thirdparty/lldpd.git/commitdiff
osx: don't try to build universal binaries
authorVincent Bernat <bernat@luffy.cx>
Mon, 24 Jun 2013 23:25:04 +0000 (01:25 +0200)
committerVincent Bernat <bernat@luffy.cx>
Mon, 24 Jun 2013 23:25:04 +0000 (01:25 +0200)
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

index c8fe955caaea8d41f78395065c70077dba1a2385..1cac5e270751b0b463e090e02c595b4396d7e407 100644 (file)
--- 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