Skip to content

Commit

Permalink
Fix linking and crash in echo | frida-compile -
Browse files Browse the repository at this point in the history
  • Loading branch information
radare committed Jan 8, 2023
1 parent afad9f0 commit 11b68e1
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
3 changes: 2 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,8 @@ endif
CC?=gcc
CXX?=g++
CFLAGS+=-fPIC
LDFLAGS+=-shared -fPIC
LDFLAGS+=-fPIC
PLUGIN_LDFLAGS+=-shared -fPIC
CFLAGS+=-Wall
CFLAGS+=-Werror

Expand Down
5 changes: 4 additions & 1 deletion src/frida-compile.c
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
#include <r_util/r_print.h>


static int on_compiler_diagnostics (void *user, GVariant *diagnostics) {
static int on_compiler_diagnostics(void *user, GVariant *diagnostics) {
gchar *str = g_variant_print (diagnostics, TRUE);
str = r_str_replace (str, "int64", "int64:", true);
char *json = r_print_json_indent (str, true, " ", NULL);
Expand Down Expand Up @@ -88,6 +88,9 @@ int main(int argc, char **argv) {
}
free (slurpedData);
free (filename);
if (rc && stdin_mode) {
break;
}
}
g_object_unref (compiler);
g_object_unref (device_manager);
Expand Down

0 comments on commit 11b68e1

Please sign in to comment.