]> git.ipfire.org Git - thirdparty/libarchive.git/commitdiff
On Mac OS, Link CoreFoundation to avoid build failure.
authorMichihiro NAKAJIMA <ggcueroad@gmail.com>
Sat, 7 May 2011 12:49:28 +0000 (08:49 -0400)
committerMichihiro NAKAJIMA <ggcueroad@gmail.com>
Sat, 7 May 2011 12:49:28 +0000 (08:49 -0400)
SVN-Revision: 3286

CMakeLists.txt
configure.ac

index 30aa8d33a5890831a8359acaaabe20f90fb9c23e..a5572c4fa6cf78e101cf6df621af1c9b61ad9989 100644 (file)
@@ -1031,6 +1031,11 @@ IF(MSVC)
   ADD_DEFINITIONS(-D_CRT_SECURE_NO_DEPRECATE)
 ENDIF(MSVC)
 
+# We need CoreFoundation on Mac OS.
+IF(APPLE)
+  LIST(APPEND ADDITIONAL_LIBS "-framework CoreFoundation")
+ENDIF(APPLE)
+
 IF(ENABLE_TEST)
   ADD_CUSTOM_TARGET(run_all_tests)
 ENDIF(ENABLE_TEST)
index 1726b52a4dce848510fcb4893f7af3add27c09e8..661e3d812adec567c39378f91aab8f69000cd0f4 100644 (file)
@@ -191,6 +191,13 @@ case $host in
   ;;
 esac
 
+# We need CoreFoundation on Mac OS.
+case $host in
+  *darwin* )
+  LIBS="${LIBS} -framework CoreFoundation"
+  ;;
+esac
+
 # Checks for header files.
 AC_HEADER_DIRENT
 AC_HEADER_SYS_WAIT