1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41
|
Description: Apply compile flags as required by Debian
Upstream has independently changed things so that this patch does not need to
be upstreamed.
Author: Andreas Bombe <aeb@debian.org>
Forwarded: not-needed
Last-Update: 2023-07-09
---
This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
--- a/Makefile.in
+++ b/Makefile.in
@@ -120,13 +120,14 @@
#target=x86_64-apple-darwin
#target=i386-pc-mingw32
+SHLIB_FLAGS=$(LDFLAGS)
ifeq ($(SOEXT),.so)
-SHLIB_FLAGS=-Wl,-soname,$(notdir $@)
+SHLIB_FLAGS+=-Wl,-soname,$(notdir $@)
else ifeq ($(SOEXT),.dll)
-SHLIB_FLAGS=
+SHLIB_FLAGS+=
else ifeq ($(SOEXT),.dylib)
# Allow the use of -rpath in executable
-SHLIB_FLAGS=-Wl,-install_name,@rpath/$(notdir $@)
+SHLIB_FLAGS+=-Wl,-install_name,@rpath/$(notdir $@)
endif
# Flags for libraries
@@ -612,10 +613,10 @@
################ VPI #####################################################
vpi_thunk.o: $(GRTSRCDIR)/vpi_thunk.c $(GRTSRCDIR)/vpi_thunk.h
- $(CC) -c -o $@ $< $(PIC_FLAGS) $(CFLAGS)
+ $(CC) -c -g -o $@ $< $(PIC_FLAGS) $(CFLAGS)
vhpi_thunk.o: $(GRTSRCDIR)/vhpi_thunk.c $(GRTSRCDIR)/vhpi_thunk.h
- $(CC) -c -o $@ $< $(PIC_FLAGS) $(CFLAGS)
+ $(CC) -c -g -o $@ $< $(PIC_FLAGS) $(CFLAGS)
$(libdirsuffix)/libghdlvpi$(SOEXT): vpi_thunk.o vhpi_thunk.o
$(MKDIR) -p $(libdirsuffix)
|