diff options
Diffstat (limited to 'src/Makefile.OSX')
-rw-r--r-- | src/Makefile.OSX | 20 |
1 files changed, 17 insertions, 3 deletions
diff --git a/src/Makefile.OSX b/src/Makefile.OSX index ee9efde..d5f4c88 100644 --- a/src/Makefile.OSX +++ b/src/Makefile.OSX @@ -18,8 +18,22 @@ # without this, but the performance impact may require you to # try it unsynchronized. # -# FAKE_SLEEP -# - Also intercept sleep(), nanosleep(), usleep(), alarm(), [p]poll() +# FAKE_SLEEP +# - Also intercept sleep(), nanosleep(), usleep(), alarm(), [p]poll() +# +# MACOS_DYLD_INTERPOSE +# - Use dlyd interposing instead of name-based function interception +# (required since macOS Monterey) +# +# FAKE_RANDOM +# - Intercept getentropy(). Dangerous for production use. +# See README about FAKE_RANDOM. +# +# FAKE_SETTIME +# - Intercept clock_settime(), settimeofday(), and adjtime() +# +# FAKE_PID +# - Enable faked values for getpid() calls through FAKETIME_FAKEPID # # * Compilation addition: second libMT target added for building the pthread- # enabled library as a separate library @@ -38,7 +52,7 @@ INSTALL ?= install PREFIX ?= /usr/local -CFLAGS += -DFAKE_SLEEP -DFAKE_INTERNAL_CALLS -DPREFIX='"'${PREFIX}'"' $(FAKETIME_COMPILE_CFLAGS) -DMACOS_DYLD_INTERPOSE +CFLAGS += -DFAKE_SLEEP -DFAKE_INTERNAL_CALLS -DPREFIX='"'${PREFIX}'"' $(FAKETIME_COMPILE_CFLAGS) -DMACOS_DYLD_INTERPOSE -DFAKE_SETTIME LIB_LDFLAGS += -dynamiclib -current_version 0.9.9 -compatibility_version 0.7 SONAME = 1 |