Source: lv2vocoder
Version: 1-5
Tags: patch upstream
User: helm...@debian.org
Usertags: rebootstrap

lv2vocoder fails to cross build from source, because the upstream
GNUmakefile hard codes build architecture build tools. The attached
patch fixes that and makes lv2vocoder cross build successfully. Please
consider applying it.

Helmut
--- lv2vocoder-1.orig/GNUmakefile
+++ lv2vocoder-1/GNUmakefile
@@ -3,7 +3,8 @@
 # These files go into the bundle
 BUNDLE_FILES = manifest.ttl vocoder.ttl vocoder.so
 
-CFLAGS += -c -Wall -fPIC -DPIC $(strip $(shell pkg-config --cflags lv2core))
+PKG_CONFIG ?= pkg-config
+CFLAGS += -c -Wall -fPIC -DPIC $(strip $(shell $(PKG_CONFIG) --cflags lv2core))
 
 GENDEP_SED_EXPR = "s/^\\(.*\\)\\.o *: /$(subst /,\/,$(@:.d=.o)) $(subst /,\/,$@) : /g"
 GENDEP_C = set -e; $(GCC_PREFIX)gcc -MM $(CFLAGS) $< | sed $(GENDEP_SED_EXPR) > $@; [ -s $@ ] || rm -f $@
@@ -20,7 +21,7 @@
 
 vocoder.so: vocoder.o
 	@echo "Creating LV2 shared library $@ ..."
-	@g++ -shared -fPIC $(LDFLAGS) $< -o $@
+	@$(CXX) -shared -fPIC $(LDFLAGS) $< -o $@
 
 # The main target - the LV2 plugin bundle
 $(PLUGIN_NAME).lv2: $(BUNDLE_FILES)

Reply via email to