diff options
author | Xiretza <xiretza@xiretza.xyz> | 2021-05-09 15:26:20 +0200 |
---|---|---|
committer | tgingold <tgingold@users.noreply.github.com> | 2021-05-10 07:56:17 +0200 |
commit | b21b4e7b34807156d6d3bc3f8e30a41bf324dfcb (patch) | |
tree | 87cf4329d59c1706d10dd7f7d7bf59a2966bc929 | |
parent | 94c27faea6338262c1e5c31fdd7b5f832ff2ac95 (diff) | |
download | ghdl-b21b4e7b34807156d6d3bc3f8e30a41bf324dfcb.tar.gz ghdl-b21b4e7b34807156d6d3bc3f8e30a41bf324dfcb.tar.bz2 ghdl-b21b4e7b34807156d6d3bc3f8e30a41bf324dfcb.zip |
Makefile.in: strip -static from LDFLAGS for libghdl
MinGW builds set LDFLAGS=-static, but libghdl is already built -shared,
which causes the build to fail.
-rw-r--r-- | Makefile.in | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Makefile.in b/Makefile.in index df92e0b17..7f5824b53 100644 --- a/Makefile.in +++ b/Makefile.in @@ -425,7 +425,7 @@ LIBGHDL_GRT_OBJS= pic/grt-cstdio.o lib/$(libghdl_name): $(GRT_SRC_DEPS) $(LIBGHDL_GRT_OBJS) version.ads force # Use -g for gnatlink so that the binder file is not removed. We need # it for libghdl.a - $(GNATMAKE) -I- -aI. -D pic -z libghdl -o $@ -gnat12 $(GNATFLAGS) $(PIC_FLAGS) $(LIBGHDL_INCFLAGS) -bargs -shared -Llibghdl_ -largs -g -shared $(SHLIB_FLAGS) $(LDFLAGS) $(LIBGHDL_GRT_OBJS) + $(GNATMAKE) -I- -aI. -D pic -z libghdl -o $@ -gnat12 $(GNATFLAGS) $(PIC_FLAGS) $(LIBGHDL_INCFLAGS) -bargs -shared -Llibghdl_ -largs -g -shared $(SHLIB_FLAGS) $(filter-out -static,$(LDFLAGS)) $(LIBGHDL_GRT_OBJS) # On windows, gnatmake (via Osint.Executable_Name) always appends .exe # Adjust. (Other solution: use gnatmake for compilation and binding, # then use gnatlink directly for linking). |