Source: httpfs2 Version: 0.1.4-1.1 Tags: patch upstream User: debian-cr...@lists.debian.org Usertags: ftcbfs
httpfs2 fails to cross build from source, because it hard codes the build architecture pkg-config in the upstream Makefile. It also stuffs the compiler flag -g into the compiler variable, which will get lost when overridden by debhelper. I'm attaching a patch for your convenience. Helmut
--- httpfs2-0.1.4.orig/Makefile +++ httpfs2-0.1.4/Makefile @@ -1,11 +1,12 @@ -CC=gcc -g -CFLAGS := -Os -Wall $(shell pkg-config fuse --cflags) +CC=gcc +PKG_CONFIG ?= pkg-config +CFLAGS := -g -Os -Wall $(shell $(PKG_CONFIG) fuse --cflags) CPPFLAGS := -Wall -DUSE_AUTH -D_XOPEN_SOURCE=500 -D_ISOC99_SOURCE -D_POSIX_C_SOURCE=200112L THR_CPPFLAGS := -DUSE_THREAD THR_LDFLAGS := -lpthread -SSL_CPPFLAGS := -DUSE_SSL $(shell pkg-config openssl --cflags) -SSL_LDFLAGS := $(shell pkg-config openssl --libs) -LDFLAGS := $(shell pkg-config fuse --libs | sed -e s/-lrt// -e s/-ldl//) +SSL_CPPFLAGS := -DUSE_SSL $(shell $(PKG_CONFIG) openssl --cflags) +SSL_LDFLAGS := $(shell $(PKG_CONFIG) openssl --libs) +LDFLAGS := $(shell $(PKG_CONFIG) fuse --libs | sed -e s/-lrt// -e s/-ldl//) intermediates =