Define std_libs and std_lib_dirs for riscv.
@@ -75,6 +75,12 @@ static lib_t std_libs[]
{"/lib64/libm.so.6", NULL}, {"/lib/s390x-linux-gnu/libm.so.6", NULL},
{"/lib64/libpthread.so.0", NULL}, {"/lib/s390x-linux-gnu/libpthread.so.0", NULL}};
static const char *std_lib_dirs[] = {"/lib64", "/lib/s390x-linux-gnu"};
+#elif (__riscv)
+static lib_t std_libs[]
+ = {{"/lib64/libc.so.6", NULL}, {"/lib/riscv64-linux-gnu/libc.so.6", NULL},
+ {"/lib64/libm.so.6", NULL}, {"/lib/riscv64-linux-gnu/libm.so.6", NULL},
+ {"/lib64/libpthread.so.0", NULL}, {"/lib/riscv64-linux-gnu/libpthread.so.0", NULL}};
+static const char *std_lib_dirs[] = {"/lib64", "/lib/riscv64-linux-gnu"};
#else
#error cannot recognize 32- or 64-bit target
#endif
