From 0e908d5b1e4f35da1926d66d97778e436d555cf9 Mon Sep 17 00:00:00 2001 From: "Edward J. Schwartz" Date: Thu, 20 Oct 2022 08:26:55 -0400 Subject: Fix -rpath argument --- src/afl-cc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') 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 { -- cgit 1.4.1