From 6b7d841c445ebc6a02519e3ac53654f2dc5ad379 Mon Sep 17 00:00:00 2001 From: Vincent Bernat Date: Sun, 21 Feb 2016 14:51:15 +0100 Subject: [PATCH] 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. --- README.md | 14 ++++++++++++++ 1 file changed, 14 insertions(+) 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`. -- 2.39.5