Source: wmxres Version: 1.3-1 Tags: patch upstream User: debian-cr...@lists.debian.org Usertags: ftcbfs
wmxres fails to cross build from source. For one thing, the upstream Makefile hard codes the build architecture compiler (cc/gcc) in a few places despite having a standard CC variable. Using the variable fixes this part. Beyond that, it also passes -s to install, which happens to use the build architecture strip. Doing so also breaks generation of -dbgsym packages. For that reason, dh_auto_install nowadays passes an install that never strips in the INSTALL variable, so making install also substitutable fixes this part. Putting this together, one can cross build wmxres-dbgsym. Please consider applying the attached patch. Helmut
--- wmxres-1.3.orig/Makefile +++ wmxres-1.3/Makefile @@ -2,6 +2,7 @@ DESTDIR = CC = gcc +INSTALL = install CFLAGS = -O2 -Wall -fstack-protector -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security FINAL_CFLAGS = -O2 -Wall -fstack-protector -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Wl,-z,norelro DEBUG_CFLAGS = -g -Wall @@ -20,17 +21,17 @@ endif .c.o: - cc -c $(CFLAGS) -D$(shell echo `uname -s`) $< -o $*.o $(INCDIR) + $(CC) -c $(CFLAGS) -D$(shell echo `uname -s`) $< -o $*.o $(INCDIR) all: wmxres/wmxres wmxres/wmxres: $(OBJS) - gcc $(CFLAGS) -o wmxres/wmxres $^ $(LIBDIR) $(LIBS) + $(CC) $(CFLAGS) -o wmxres/wmxres $^ $(LIBDIR) $(LIBS) debug: $(OBJS) - gcc $(DEBUG_CFLAGS) -o wmxres/wmxres $^ $(LIBDIR) $(LIBS) + $(CC) $(DEBUG_CFLAGS) -o wmxres/wmxres $^ $(LIBDIR) $(LIBS) install:: all - install $(INSTALL_FLAGS) -m 4755 wmxres/wmxres \ + $(INSTALL) $(INSTALL_FLAGS) -m 4755 wmxres/wmxres \ $(DESTDIR)/usr/bin .PHONY :clean