diff options
author | van Hauser <vh@thc.org> | 2023-12-04 18:49:44 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-12-04 18:49:44 +0100 |
commit | 5759b93b2d4f6cd67313b14074576e9ae941d2df (patch) | |
tree | 20919b17d391d27a4e7e8eac3b59e55b5a12cbd1 /src | |
parent | 01e0d4aa1c9e856124491d1f23deea0ae443d8ea (diff) | |
parent | 0e7afb75dd02efebc5518505d06667fde0467c7e (diff) | |
download | afl++-5759b93b2d4f6cd67313b14074576e9ae941d2df.tar.gz |
Merge pull request #1920 from m-Vins/dev
Removing -Wl,rpath <LLVM_LIBDIR> when using GCC
Diffstat (limited to 'src')
-rw-r--r-- | src/afl-cc.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/afl-cc.c b/src/afl-cc.c index c3c677b4..6faed538 100644 --- a/src/afl-cc.c +++ b/src/afl-cc.c @@ -1144,7 +1144,8 @@ static void edit_params(u32 argc, char **argv, char **envp) { if (!have_pic) { cc_params[cc_par_cnt++] = "-fPIC"; } - if (!getenv("AFL_LLVM_NO_RPATH")) { + if (compiler_mode != GCC_PLUGIN && compiler_mode != GCC && + !getenv("AFL_LLVM_NO_RPATH")) { // in case LLVM is installed not via a package manager or "make install" // e.g. compiled download or compiled from github then its ./lib directory |