From: Vincent Bernat Date: Tue, 25 Jun 2013 21:56:38 +0000 (+0200) Subject: osx: add a way to compile for older versions of OS X X-Git-Tag: 0.7.6~17 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=462d8b6c813af7b1f2896e1095c751ec16bb47f7;p=thirdparty%2Flldpd.git osx: add a way to compile for older versions of OS X --- diff --git a/README.md b/README.md index 8cd59a12..cff76216 100644 --- a/README.md +++ b/README.md @@ -84,10 +84,20 @@ simpler alternatives: version of OS X (it is important to use a separate build directory): - mkdir build + mkdir build && cd build ../configure --prefix=/usr --sysconfdir=/etc --with-embedded-libevent make -C osx pkg ARCHS="i386 x86_64" + If you want to compile for an older version of Mac OS X, you need + to find the right SDK and issues commands like those: + + SDK=/Developer/SDKs/MacOSX10.6.sdk + mkdir build && cd build + ../configure --prefix=/usr --sysconfdir=/etc --with-embedded-libevent \ + CFLAGS="-mmacosx-version-min=10.6 -isysroot $SDK" \ + LDFLAGS="-mmacosx-version-min=10.6 -isysroot $SDK" + make -C osx pkg ARCHS="i386 x86_64" + 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`.