On Sun, Apr 15, 2012 at 12:41:52AM -0300, Silas Silva wrote: > Hi there! > > I successfully compiled ghdl under NetBSD following instructions in > README! The biggest problem I had was regarding my environment being > bad configured (gmp somewhere, mpfr somewhere else, etc.). > > But.... there was two problems yet:
I'm sorry. Use the same conditionals for FreeBSD in Makefile.in made it work like a charm! ;-) Patch attached. It is the same code of the FreeBSD part, just duplicated to match NetBSD (perhaps a general %bsd% condition would be better? I don't know...). Thank you! -- Silas Silva
diff --git a/translate/grt/Makefile.inc b/translate/grt/Makefile.inc index 3fc7361..5621ad1 100644 --- a/translate/grt/Makefile.inc +++ b/translate/grt/Makefile.inc @@ -58,6 +58,11 @@ ifeq ($(filter-out i%86 freebsd%,$(arch) $(osys)),) GRT_EXTRA_LIB=-lm $(GRT_ELF_OPTS) ADAC=gnatgcc endif +ifeq ($(filter-out i%86 netbsd%,$(arch) $(osys)),) + GRT_TARGET_OBJS=i386.o linux.o times.o + GRT_EXTRA_LIB=-lm $(GRT_ELF_OPTS) + ADAC=gnatgcc +endif ifeq ($(filter-out i%86 darwin%,$(arch) $(osys)),) GRT_TARGET_OBJS=i386.o linux.o times.o GRT_EXTRA_LIB=-lm
_______________________________________________ Ghdl-discuss mailing list [email protected] https://mail.gna.org/listinfo/ghdl-discuss
