36 lines
996 B
Diff
36 lines
996 B
Diff
Index: Makefile.target
|
|
================================================================================
|
|
--- Makefile.target
|
|
+++ Makefile.target
|
|
@@ -17,7 +17,7 @@
|
|
VPATH+=:$(SRC_PATH)/linux-user
|
|
DEFINES+=-I$(SRC_PATH)/linux-user -I$(SRC_PATH)/linux-user/$(TARGET_ARCH)
|
|
endif
|
|
-CFLAGS=-Wall -O2 -g -fno-strict-aliasing
|
|
+CFLAGS += -Wall -g -fno-strict-aliasing
|
|
#CFLAGS+=-Werror
|
|
LDFLAGS=-g
|
|
LIBS=
|
|
@@ -150,8 +150,8 @@
|
|
|
|
#########################################################
|
|
|
|
-DEFINES+=-D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE
|
|
-LIBS+=-lm
|
|
+DEFINES+=-D_GNU_SOURCE -D_BSD_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE
|
|
+LIBS+=-lm -lrt
|
|
ifndef CONFIG_USER_ONLY
|
|
LIBS+=-lz
|
|
endif
|
|
--- linux-user/signal.c
|
|
+++ linux-user/signal.c
|
|
@@ -389,6 +394,8 @@
|
|
{
|
|
int sig;
|
|
target_siginfo_t tinfo;
|
|
+
|
|
+ //printf("host_signal_handler, signum %d\n",host_signum);
|
|
|
|
/* the CPU emulator uses some host signals to detect exceptions,
|
|
we we forward to it some signals */
|