mirror of
https://github.com/AFLplusplus/AFLplusplus.git
synced 2025-06-13 02:28:09 +00:00
fixing -Wl,-rpath=<LLVM_LIBDIR>
This commit is contained in:
committed by
Vincenzo MEZZELA
parent
0e7afb75dd
commit
6c04d4cc80
10
src/afl-cc.c
10
src/afl-cc.c
@ -1150,16 +1150,12 @@ static void edit_params(u32 argc, char **argv, char **envp) {
|
|||||||
// in case LLVM is installed not via a package manager or "make install"
|
// 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
|
// e.g. compiled download or compiled from github then its ./lib directory
|
||||||
// might not be in the search path. Add it if so.
|
// might not be in the search path. Add it if so.
|
||||||
u8 *libdir = strdup(LLVM_LIBDIR);
|
const char *libdir = LLVM_LIBDIR;
|
||||||
if (plusplus_mode && strlen(libdir) && strncmp(libdir, "/usr", 4) &&
|
if (plusplus_mode && strlen(libdir) && strncmp(libdir, "/usr", 4) &&
|
||||||
strncmp(libdir, "/lib", 4)) {
|
strncmp(libdir, "/lib", 4)) {
|
||||||
|
|
||||||
cc_params[cc_par_cnt++] = "-Wl,-rpath";
|
u8 *libdir_opt = strdup("-Wl,-rpath=" LLVM_LIBDIR);
|
||||||
cc_params[cc_par_cnt++] = libdir;
|
cc_params[cc_par_cnt++] = libdir_opt;
|
||||||
|
|
||||||
} else {
|
|
||||||
|
|
||||||
free(libdir);
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user