diff options
author | van Hauser <vh@thc.org> | 2024-02-16 10:14:56 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-02-16 10:14:56 +0100 |
commit | ebdb71aeb0c6da8a6782c377b43e9fc954cc5f45 (patch) | |
tree | fd85754a62f956c8d6731840991487f148782a9e /src | |
parent | 61ceef64b10cc8da0bba79c3f97ae223d2095fc5 (diff) | |
parent | 6dc58750cf2b321b5cb42a2080410e6d9420548b (diff) | |
download | afl++-ebdb71aeb0c6da8a6782c377b43e9fc954cc5f45.tar.gz |
Merge pull request #2002 from seanm/issue2001
issue #2001: fix passing rpath to linker on macOS
Diffstat (limited to 'src')
-rw-r--r-- | src/afl-cc.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/afl-cc.c b/src/afl-cc.c index 3a32a0d1..6aa0da6a 100644 --- a/src/afl-cc.c +++ b/src/afl-cc.c @@ -2379,7 +2379,11 @@ void add_runtime(aflcc_state_t *aflcc) { if (aflcc->plusplus_mode && strlen(libdir) && strncmp(libdir, "/usr", 4) && strncmp(libdir, "/lib", 4)) { +#ifdef __APPLE__ + u8 *libdir_opt = strdup("-Wl,-rpath," LLVM_LIBDIR); +#else u8 *libdir_opt = strdup("-Wl,-rpath=" LLVM_LIBDIR); +#endif insert_param(aflcc, libdir_opt); } |