Skip to content

Commit

Permalink
removing options "-Wl,-rpath" "LLVM_LIBDIR" when using gcc
Browse files Browse the repository at this point in the history
  • Loading branch information
vmezzela committed Dec 4, 2023
1 parent 01e0d4a commit 0e7afb7
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/afl-cc.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 0e7afb7

Please sign in to comment.