Update configure cache file example.

This commit is contained in:
Jason Evans 2016-11-30 09:57:12 -08:00
parent 34a7e37a71
commit e1b2970d28

18
INSTALL
View File

@ -328,19 +328,13 @@ PATH="?"
'configure' uses this to find programs. 'configure' uses this to find programs.
In some cases it may be necessary to work around configuration results that do In some cases it may be necessary to work around configuration results that do
not match reality. For example, OS X 10.12 in conjunction with XCode 8 adds not match reality. For example, Linux 4.5 added support for the MADV_FREE flag
the os_unfair_lock_*() API, but if XCode 8 is used to build jemalloc on older to madvise(2), which can cause problems if building on a host with MADV_FREE
versions of OS X, the configure script will determine that os_unfair_lock_*() support and deploying to a target without. To work around this, use a cache
is compilable, yet run-time failures will result. To work around this file to override the relevant configuration variable defined in configure.ac,
(ignoring that MACOSX_DEPLOYMENT_TARGET may be the correct fix), create a cache e.g.:
file (called e.g. darwin.cache) with the following contents to override the
relevant configuration variable defined in configure.ac:
je_cv_os_unfair_lock=no echo "je_cv_madv_free=no" > config.cache && ./configure -C
Invoke configure as such:
./configure --cache=darwin.cache
=== Advanced compilation ======================================================= === Advanced compilation =======================================================