]> git.ipfire.org Git - thirdparty/lldpd.git/commitdiff
osx: explain how to compile for older versions with recent SDK
authorVincent Bernat <vincent@bernat.im>
Sun, 21 Feb 2016 13:51:15 +0000 (14:51 +0100)
committerVincent Bernat <vincent@bernat.im>
Sun, 21 Feb 2016 13:51:15 +0000 (14:51 +0100)
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

index 01ac656bf2af11bceb3360dad6ad20fe351c756f..81ce7c630caf191991b9c914aacad19b82d99e21 100644 (file)
--- 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`.