about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorvincenzo MEZZELA <vincenzo.mezzela@amadeus.com>2023-12-04 16:39:10 +0100
committervincenzo MEZZELA <vincenzo.mezzela@amadeus.com>2023-12-04 16:46:30 +0100
commit0e7afb75dd02efebc5518505d06667fde0467c7e (patch)
tree20919b17d391d27a4e7e8eac3b59e55b5a12cbd1 /src
parent01e0d4aa1c9e856124491d1f23deea0ae443d8ea (diff)
downloadafl++-0e7afb75dd02efebc5518505d06667fde0467c7e.tar.gz
removing options "-Wl,-rpath" "LLVM_LIBDIR" when using gcc
Diffstat (limited to 'src')
-rw-r--r--src/afl-cc.c3
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