mirror of
https://github.com/bitcoin/bitcoin.git
synced 2024-11-20 10:38:42 +01:00
build: add missing leveldb defines
src/leveldb/build_detect_platform shows how upstream defines them. These platform may not be able to fully build or run Bitcoin, but defining all known to leveldb saves future hassle. Now that all possible platforms are enumerated, specifying an unknown one is an error.
This commit is contained in:
parent
619cd29393
commit
768981c93d
20
configure.ac
20
configure.ac
@ -541,10 +541,17 @@ case $host in
|
|||||||
CPPFLAGS="$CPPFLAGS -DMAC_OSX"
|
CPPFLAGS="$CPPFLAGS -DMAC_OSX"
|
||||||
OBJCXXFLAGS="$CXXFLAGS"
|
OBJCXXFLAGS="$CXXFLAGS"
|
||||||
;;
|
;;
|
||||||
|
*android*)
|
||||||
|
dnl make sure android stays above linux for hosts like *linux-android*
|
||||||
|
LEVELDB_TARGET_FLAGS="-DOS_ANDROID"
|
||||||
|
;;
|
||||||
*linux*)
|
*linux*)
|
||||||
TARGET_OS=linux
|
TARGET_OS=linux
|
||||||
LEVELDB_TARGET_FLAGS="-DOS_LINUX"
|
LEVELDB_TARGET_FLAGS="-DOS_LINUX"
|
||||||
;;
|
;;
|
||||||
|
*kfreebsd*)
|
||||||
|
LEVELDB_TARGET_FLAGS="-DOS_KFREEBSD"
|
||||||
|
;;
|
||||||
*freebsd*)
|
*freebsd*)
|
||||||
LEVELDB_TARGET_FLAGS="-DOS_FREEBSD"
|
LEVELDB_TARGET_FLAGS="-DOS_FREEBSD"
|
||||||
;;
|
;;
|
||||||
@ -554,10 +561,17 @@ case $host in
|
|||||||
*netbsd*)
|
*netbsd*)
|
||||||
LEVELDB_TARGET_FLAGS="-DOS_NETBSD"
|
LEVELDB_TARGET_FLAGS="-DOS_NETBSD"
|
||||||
;;
|
;;
|
||||||
|
*dragonfly*)
|
||||||
|
LEVELDB_TARGET_FLAGS="-DOS_DRAGONFLYBSD"
|
||||||
|
;;
|
||||||
|
*solaris*)
|
||||||
|
LEVELDB_TARGET_FLAGS="-DOS_SOLARIS"
|
||||||
|
;;
|
||||||
|
*hpux*)
|
||||||
|
LEVELDB_TARGET_FLAGS="-DOS_HPUX"
|
||||||
|
;;
|
||||||
*)
|
*)
|
||||||
OTHER_OS=`echo ${host_os} | awk '{print toupper($0)}'`
|
AC_MSG_ERROR(Cannot build leveldb for $host. Please file a bug report.)
|
||||||
AC_MSG_WARN([Guessing LevelDB OS as OS_${OTHER_OS}, please check whether this is correct, if not add an entry to configure.ac.])
|
|
||||||
LEVELDB_TARGET_FLAGS="-DOS_${OTHER_OS}"
|
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user