xcode 8 fix for fink-buildenv-modules

Jack Howarth <[email protected]>
Newsgroups gmane.os.apple.fink.devel
Message-ID <CAP5Ds0DjofyZ_5Qg_jM=r2JENh3rCf_rXmG5tczou3zeoAhfDQ@mail.gmail.com>
Hanspeter,
      The current fink-buildenv-modules package is not savvy to the SDK
changes in Xcode8 and requires the following change...

--- /sw/lib/fink-buildenv-modules/base.sh 2016-08-09 17:49:45.000000000
-0400
+++ /sw/lib/fink-buildenv-modules/base.sh.new 2016-09-09 12:40:57.000000000
-0400
@@ -47,9 +47,12 @@
  if [ `dpkg --compare-versions $XCODE_VERSION lt 7` ]; then
  export SDK_PATH=`xcodebuild -version -sdk macosx${OSX_MAJOR_VERSION} Path`
  export SDK_VERSION=`xcodebuild -version -sdk macosx${OSX_MAJOR_VERSION}
SDKVersion`
- else
+ elif [ `dpkg --compare-versions $XCODE_VERSION lt 8` ]; then
  export SDK_PATH=`xcodebuild -version -sdk macosx10.11 Path`
  export SDK_VERSION=`xcodebuild -version -sdk macosx10.11 SDKVersion`
+ else
+ export SDK_PATH=`xcodebuild -version -sdk macosx10.12 Path`
+ export SDK_VERSION=`xcodebuild -version -sdk macosx10.12 SDKVersion`
  fi
 fi

to the fink-buildenv-modules/base.sh script so that SDK_PATH and
SDK_VERSION are populated with the correct values for Xcode 8 on 10.11.
           Jack

------------------------------------------------------------------------------

_______________________________________________
Fink-devel mailing list
[email protected]
List archive:
http://news.gmane.org/gmane.os.apple.fink.devel
Subscription management:
https://lists.sourceforge.net/lists/listinfo/fink-devel
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.