Skip to content
Snippets Groups Projects
Commit 797fa0e2 authored by Helmut Grohne's avatar Helmut Grohne Committed by dkg
Browse files

Make cross-building work.

hddemux fails to cross build from source, because it hard codes build
architecture build tools. The attached patch makes the relevant tools
substitutable and hddemux cross buildable. Please consider applying it.

See https://bugs.debian.org/928996
parent a0ebc90e
Branches
Tags
No related merge requests found
......@@ -2,10 +2,11 @@
CFLAGS += -D_GNU_SOURCE -g -O3
CFLAGS += $(shell pkg-config --cflags libuv)
CFLAGS += $(shell pkg-config --cflags libsystemd)
LDFLAGS += $(shell pkg-config --libs libuv)
LDFLAGS += $(shell pkg-config --libs libsystemd)
PKG_CONFIG ?= pkg-config
CFLAGS += $(shell $(PKG_CONFIG) --cflags libuv)
CFLAGS += $(shell $(PKG_CONFIG) --cflags libsystemd)
LDFLAGS += $(shell $(PKG_CONFIG) --libs libuv)
LDFLAGS += $(shell $(PKG_CONFIG) --libs libsystemd)
all: hddemux hddemux.1
......@@ -13,7 +14,7 @@ check: hddemux
PATH=.:$$PATH ./testsuite
hddemux: hddemux.c
gcc $(CPPFLAGS) $(CFLAGS) $< -Wl,--as-needed $(LDFLAGS) -std=c11 -pedantic -Wall -Werror -o $@
$(CC) $(CPPFLAGS) $(CFLAGS) $< -Wl,--as-needed $(LDFLAGS) -std=c11 -pedantic -Wall -Werror -o $@
hddemux.1: hddemux.1.md
pandoc -s -f markdown -t man -o $@ $<
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment