diff options
author | Helmut Grohne <helmut@subdivi.de> | 2021-01-03 11:34:42 +0100 |
---|---|---|
committer | Andrej Shadura <andrewsh@debian.org> | 2021-10-07 16:27:24 +0200 |
commit | 5298fd961fcda520e6225033d5c4c770422decde (patch) | |
tree | a4ab576c440bfc876f60a9e9a99df784fea24c0a | |
parent | e3a4e0adf357f28a7a774c6e0079ceda1280e9f5 (diff) |
Make pkg-config configurablearchive/debian/0.4.0+git20200615+1c2c89f-1
gdigi fails to cross build from source, because the upstream Makefile
hard codes the build architecture pkg-config. Making it substitutable is
sufficient to making gdigi cross buildable.
Gbp-Pq: Name cross.patch
-rw-r--r-- | Makefile | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -1,9 +1,10 @@ CC ?= gcc +PKG_CONFIG ?= pkg-config EXTRA_CFLAGS ?= EXTRA_LDFLAGS ?= -CFLAGS := $(shell pkg-config --cflags glib-2.0 gio-2.0 gtk+-3.0 libxml-2.0) -Wall -g -ansi -std=c99 $(EXTRA_CFLAGS) +CFLAGS := $(shell $(PKG_CONFIG) --cflags glib-2.0 gio-2.0 gtk+-3.0 libxml-2.0) -Wall -g -ansi -std=c99 $(EXTRA_CFLAGS) LDFLAGS = $(EXTRA_LDFLAGS) -Wl,--as-needed -LDADD := $(shell pkg-config --libs glib-2.0 gio-2.0 gtk+-3.0 gthread-2.0 alsa libxml-2.0) -lexpat -lm +LDADD := $(shell $(PKG_CONFIG) --libs glib-2.0 gio-2.0 gtk+-3.0 gthread-2.0 alsa libxml-2.0) -lexpat -lm OBJECTS = gdigi.o gui.o effects.o preset.o gtkknob.o preset_xml.o DEPFILES = $(foreach m,$(OBJECTS:.o=),.$(m).m) |