summaryrefslogtreecommitdiff
path: root/README
diff options
context:
space:
mode:
authorDerrick Brashear <shadow@dementia.org>2011-07-05 09:05:38 -0400
committerDerrick Brashear <shadow@dementia.org>2011-07-05 09:05:38 -0400
commiteb59447a6d41f03f9f3bd97876a766f9164c5993 (patch)
treead02fe9a74f014f57411fc1f6b8c9499630ab59a /README
parented250849700b77d01b579fcbf58be6f129f4988b (diff)
downloadfaketime-ng-eb59447a6d41f03f9f3bd97876a766f9164c5993.tar.gz
libfaketime macos port
port libfaketime to macos and dyld. 1) _ftpl_time calls gettimeofday since real time() does so. needed to avoid double adjustment. 2) reduce call stack: use time tptr and call fake_time instead of calling time for faking other time calls. 3) provide MacOS makefile and README notes. 4) make posix realtime calls under ifdef; define for base port but not MacOS.
Diffstat (limited to 'README')
-rw-r--r--README6
1 files changed, 6 insertions, 0 deletions
diff --git a/README b/README
index d4e273a..36c57be 100644
--- a/README
+++ b/README
@@ -96,6 +96,12 @@ not need this feature or if it confuses the application you want to use FTPL
with, define the environment variable NO_FAKE_STAT, and the intercepted stat
calls will be passed through unaltered.
+On MacOS, it is necessary to compile differently, due to the different
+behavior dyld has. Use the Makefile.MacOS provided to compile
+libfaketime.dylib.1. Additionally, instead of using LD_PRELOAD,
+the variable DYLD_INSERT_LIBRARIES should be set to the path to
+libfaketime.dylib.1, and the variable DYLD_FORCE_FLAT_NAMESPACE should be
+set (to anything).
4. Usage
--------