about summary refs log tree commit diff
path: root/src/afl-cc.c
diff options
context:
space:
mode:
authorEdward J. Schwartz <moo.github.domain.edmcman@xoxy.net>2022-10-20 08:26:55 -0400
committerGitHub <noreply@github.com>2022-10-20 08:26:55 -0400
commit0e908d5b1e4f35da1926d66d97778e436d555cf9 (patch)
tree8e034d601ca67612f3a9512a6d667f253acf10bb /src/afl-cc.c
parent5ccf38941472bda9415d14edc4ecefaa43c79d67 (diff)
downloadafl++-0e908d5b1e4f35da1926d66d97778e436d555cf9.tar.gz
Fix -rpath argument
Diffstat (limited to 'src/afl-cc.c')
-rw-r--r--src/afl-cc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/afl-cc.c b/src/afl-cc.c
index 469aa825..cd2061e6 100644
--- a/src/afl-cc.c
+++ b/src/afl-cc.c
@@ -955,7 +955,7 @@ static void edit_params(u32 argc, char **argv, char **envp) {
   if (plusplus_mode && strlen(libdir) && strncmp(libdir, "/usr", 4) &&
       strncmp(libdir, "/lib", 4)) {
 
-    cc_params[cc_par_cnt++] = "-rpath";
+    cc_params[cc_par_cnt++] = "-Wl,-rpath";
     cc_params[cc_par_cnt++] = libdir;
 
   } else {