From: Vincent Bernat Date: Sun, 21 Feb 2016 13:51:15 +0000 (+0100) Subject: osx: explain how to compile for older versions with recent SDK X-Git-Tag: 0.9.2~55 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=6b7d841c445ebc6a02519e3ac53654f2dc5ad379;p=thirdparty%2Flldpd.git osx: explain how to compile for older versions with recent SDK It's still quite unclear how we could know which versions a given SDK supports. Let's assume that we can support all still supported versions with El Capitan. --- diff --git a/README.md b/README.md index 01ac656b..81ce7c63 100644 --- a/README.md +++ b/README.md @@ -87,6 +87,20 @@ simpler alternatives: LDFLAGS="-mmacosx-version-min=10.6 -isysroot $SDK" make -C osx pkg + With recent SDK, you don't need to specify an alternate SDK. They + are organized in a way that should enable compatibility with older + versions of OSX: + + mkdir build && cd build + ../configure --prefix=/usr/local --localstatedir=/var --sysconfdir=/private/etc --with-embedded-libevent \ + --without-json --without-snmp \ + CFLAGS="-mmacosx-version-min=10.9" \ + LDFLAGS="-mmacosx-version-min=10.9" + make -C osx pkg + + You can check with `otool -l` that you got what you expected in + term of supported versions. + If you don't follow the above procedures, you will have to create the user/group `_lldpd`. Have a look at how this is done in `osx/scripts/postinstall`.