This repository has been archived by the owner on Nov 4, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 26
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #80 from YosysHQ/bugfix/79-ghdl-link
Bugfix/79 ghdl link
- Loading branch information
Showing
11 changed files
with
83 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,62 @@ | ||
diff --git a/Makefile.in b/Makefile.in | ||
index ddae0c82..2ab769d0 100644 | ||
--- a/Makefile.in | ||
+++ b/Makefile.in | ||
@@ -200,7 +200,7 @@ GHDL_MCODE_INCFLAGS=$(GHDL_COMMON_INCFLAGS) -aI$(srcdir)/src/ghdldrv -aI$(srcdir | ||
ghdl_mcode$(EXEEXT): GRT_FLAGS+=-DWITH_GNAT_RUN_TIME | ||
ghdl_mcode$(EXEEXT): $(GRT_ADD_OBJS) $(GRT_SRC_DEPS) $(ORTHO_DEPS) \ | ||
memsegs_c.o chkstk.o version.ads force | ||
- $(GNATMAKE) -o $@ -gnat12 $(GHDL_MCODE_INCFLAGS) $(GNATFLAGS) -gnatw.A ghdl_jit.adb $(GNAT_BARGS) -largs memsegs_c.o chkstk.o $(GRT_ADD_OBJS) $(LDFLAGS) $(subst @,$(GRTSRCDIR),$(GRT_EXTRA_LIB) $(GRT_EXEC_OPTS)) | ||
+ $(GNATMAKE) -o $@ -gnat12 $(GHDL_MCODE_INCFLAGS) $(GNATFLAGS) -gnatw.A ghdl_jit.adb $(GNAT_BARGS) -largs memsegs_c.o chkstk.o $(GRT_ADD_OBJS) $(LDFLAGS) $(GNAT_LARGS) $(subst @,$(GRTSRCDIR),$(GRT_EXTRA_LIB) $(GRT_EXEC_OPTS)) | ||
|
||
memsegs_c.o: $(srcdir)/src/ortho/mcode/memsegs_c.c | ||
$(CC) -c $(COVERAGE_FLAGS) $(CFLAGS) -o $@ $< | ||
@@ -314,7 +314,7 @@ ghdl1-gcc$(EXEEXT): version.ads force | ||
ghdl_gcc$(EXEEXT): version.ads $(GRT_SYNTH_OBJS) force | ||
$(GNATMAKE) $(GHDL_GCC_INCFLAGS) -aI$(srcdir)/src/ghdldrv \ | ||
$(GNATFLAGS) ghdl_gcc $(GNAT_BARGS) \ | ||
- -largs $(LDFLAGS) $(GRT_SYNTH_OBJS) | ||
+ -largs $(LDFLAGS) $(GRT_SYNTH_OBJS) $(GNAT_LARGS) | ||
|
||
libs.vhdl.local_gcc: ghdl_gcc$(EXEEXT) ghdl1-gcc$(EXEEXT) | ||
$(MAKE) -f $(srcdir)/libraries/Makefile.inc $(LIBVHDL_FLAGS_TO_PASS) GHDL=$(PWD)/ghdl_gcc$(EXEEXT) GHDL_FLAGS="--GHDL1=$(PWD)/ghdl1-gcc$(EXEEXT) $(LIB_CFLAGS)" vhdl.libs.all libs.vhdl.standard | ||
@@ -342,7 +342,7 @@ ghdl_llvm_jit$(EXEEXT): GRT_FLAGS+=-DWITH_GNAT_RUN_TIME | ||
ghdl_llvm_jit$(EXEEXT): $(GRT_ADD_OBJS) $(GRT_SRC_DEPS) $(ORTHO_DEPS) \ | ||
llvm-cbindings.o version.ads force | ||
$(GNATMAKE) -o $@ $(GHDL_LLVM_INCFLAGS) $(GNATFLAGS) ghdl_jit.adb \ | ||
- $(GNAT_BARGS) -largs llvm-cbindings.o $(GRT_ADD_OBJS) \ | ||
+ $(GNAT_BARGS) -largs llvm-cbindings.o $(GNAT_LARGS) $(GRT_ADD_OBJS) \ | ||
$(subst @,$(GRTSRCDIR),$(GRT_EXTRA_LIB)) --LINK=$(CXX) \ | ||
`$(LLVM_CONFIG) --ldflags --libs --system-libs` $(LDFLAGS) | ||
|
||
@@ -363,7 +363,7 @@ ghdl_llvm$(EXEEXT): version.ads $(GRT_SYNTH_OBJS) force | ||
$(GNATMAKE) $(GHDL_LLVM_INCFLAGS) \ | ||
-aI$(srcdir)/src/ghdldrv $(GNATFLAGS) \ | ||
ghdl_llvm $(GNAT_BARGS) \ | ||
- -largs $(LDFLAGS) $(GRT_SYNTH_OBJS) | ||
+ -largs $(LDFLAGS) $(GRT_SYNTH_OBJS) $(GNAT_LARGS) | ||
|
||
ghdl1-llvm$(EXEEXT): version.ads force | ||
$(MAKE) -f $(srcdir)/src/ortho/$(llvm_be)/Makefile \ | ||
@@ -400,7 +400,7 @@ uninstall.llvm: uninstall.llvm.program uninstall.grt | ||
GHDL_SIMUL_INCFLAGS=$(GHDL_COMMON_INCFLAGS) -aI$(srcdir)/src/ghdldrv -aI$(srcdir)/src/vhdl/simulate -aI$(srcdir)/src/synth | ||
|
||
ghdl_simul$(EXEEXT): $(GRT_ADD_OBJS) $(GRT_SRC_DEPS) version.ads force | ||
- $(GNATMAKE) $(GHDL_SIMUL_INCFLAGS) $(GNATFLAGS) -gnat12 ghdl_simul $(GNAT_BARGS) -largs $(LDFLAGS) $(GRT_ADD_OBJS) $(subst @,$(GRTSRCDIR),$(GRT_EXTRA_LIB)) | ||
+ $(GNATMAKE) $(GHDL_SIMUL_INCFLAGS) $(GNATFLAGS) -gnat12 ghdl_simul $(GNAT_BARGS) -largs $(LDFLAGS) $(GNAT_LARGS) $(GRT_ADD_OBJS) $(subst @,$(GRTSRCDIR),$(GRT_EXTRA_LIB)) | ||
|
||
libs.vhdl.simul: ghdl_simul$(EXEEXT) | ||
$(MAKE) -f $(srcdir)/libraries/Makefile.inc $(LIBVHDL_FLAGS_TO_PASS) GHDL=$(PWD)/ghdl_simul$(EXEEXT) GHDL_FLAGS="" VHDLLIBS_COPY_OBJS=no vhdl.libs.all | ||
diff --git a/scripts/windows/mcode/Makefile.in b/scripts/windows/mcode/Makefile.in | ||
index 0f7b7422..be1f1151 100644 | ||
--- a/scripts/windows/mcode/Makefile.in | ||
+++ b/scripts/windows/mcode/Makefile.in | ||
@@ -14,7 +14,7 @@ GRTSRCDIR=grt | ||
####grt Makefile.inc | ||
|
||
ghdl_mcode: default_paths.ads $(GRT_ADD_OBJS) mmap_binding.o force | ||
- gnatmake -aIghdldrv -aIghdl -aIortho -aIgrt $(GNATFLAGS) ghdl_mcode $(GNAT_BARGS) -largs mmap_binding.o $(GRT_ADD_OBJS) $(GRT_EXTRA_LIB) -Wl,--version-script=$(GRTSRCDIR)/grt.ver -Wl,--export-dynamic | ||
+ gnatmake -aIghdldrv -aIghdl -aIortho -aIgrt $(GNATFLAGS) ghdl_mcode $(GNAT_BARGS) -largs mmap_binding.o $(GNAT_LARGS) $(GRT_ADD_OBJS) $(GRT_EXTRA_LIB) -Wl,--version-script=$(GRTSRCDIR)/grt.ver -Wl,--export-dynamic | ||
|
||
mmap_binding.o: ortho/mmap_binding.c | ||
$(CC) -c -g -o $@ $< |
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters