On Tue, 21 Jan 2014 21:50:19 +0100 (CET)
[email protected] wrote:

> Can you post the patch set for x86_64 freebsd ?
> 

Two patch files are attached. They can be applied like this:

patch ghdl-0.31/translate/grt/config/linux.c linux.c.patch
patch ghdl-0.31/translate/grt/Makefile.inc Makefile.inc.patch

--- linux.c.orig	2014-01-20 14:53:35.000000000 -0500
+++ linux.c	2014-01-20 17:20:23.000000000 -0500
@@ -37,6 +37,11 @@
 #define EXTEND_STACK 1
 #define STACK_SIGNAL SIGSEGV
 #endif
+#ifdef __FreeBSD__
+/* If set, SIGSEGV is caught in order to automatically grow the stacks.  */
+#define EXTEND_STACK 1
+#define STACK_SIGNAL SIGSEGV
+#endif
 #ifdef __APPLE__
 /* If set, SIGSEGV is caught in order to automatically grow the stacks.  */
 #define EXTEND_STACK 1
--- Makefile.inc.orig	2014-01-17 06:11:23.000000000 -0500
+++ Makefile.inc	2014-01-17 13:18:42.000000000 -0500
@@ -56,7 +56,12 @@
 ifeq ($(filter-out i%86 freebsd%,$(arch) $(osys)),)
   GRT_TARGET_OBJS=i386.o linux.o times.o
   GRT_EXTRA_LIB=-lm $(GRT_ELF_OPTS)
-  ADAC=gnatgcc
+  ADAC=ada
+endif
+ifeq ($(filter-out x86_64 freebsd%,$(arch) $(osys)),)
+  GRT_TARGET_OBJS=amd64.o linux.o times.o
+  GRT_EXTRA_LIB=-lm $(GRT_ELF_OPTS)
+  ADAC=ada
 endif
 ifeq ($(filter-out i%86 darwin%,$(arch) $(osys)),)
   GRT_TARGET_OBJS=i386.o linux.o times.o

Attachment: signature.asc
Description: PGP signature

_______________________________________________
Ghdl-discuss mailing list
[email protected]
https://mail.gna.org/listinfo/ghdl-discuss

Reply via email to