X-Git-Url: http://git.draconx.ca/gitweb/gentoo-draconx.git/blobdiff_plain/d016ee61a8d1d16a5a0219df7e9e913bd5b92345..fec5b4d25217f850f6249cd8824980e6e9b9dc6c:/net-mail/notmuchfs/files/notmuchfs-fix-build.patch diff --git a/net-mail/notmuchfs/files/notmuchfs-fix-build.patch b/net-mail/notmuchfs/files/notmuchfs-fix-build.patch new file mode 100644 index 0000000..a03c7e7 --- /dev/null +++ b/net-mail/notmuchfs/files/notmuchfs-fix-build.patch @@ -0,0 +1,32 @@ +diff --git a/Makefile b/Makefile +index 7c13b9275e0f..25765f76110e 100644 +--- a/Makefile ++++ b/Makefile +@@ -19,7 +19,7 @@ + # + # Authors: Tim Stoakes + +-CFLAGS = -g -O2 -std=c99 -Wall -Werror -D_FILE_OFFSET_BITS=64 ++ALL_CFLAGS = -std=c99 -D_FILE_OFFSET_BITS=64 $(CFLAGS) + + OBJS = notmuchfs.o + +@@ -28,16 +28,10 @@ LIBS = -lnotmuch -lfuse + all: notmuchfs + + notmuchfs: $(OBJS) +- $(CC) -o $@ $+ $(LIBS) ++ $(CC) $(ALL_CFLAGS) $(LDFLAGS) -o $@ $+ $(LIBS) + + clean: + rm -f *.o *.dep notmuchfs + + %.o : %.c +- $(COMPILE.c) -MD -o $@ $< +- @cp $*.d $*.dep; \ +- sed -e 's/#.*//' -e 's/^[^:]*: *//' -e 's/ *\\$$//' \ +- -e '/^$$/ d' -e 's/$$/ :/' < $*.d >> $*.dep; \ +- rm -f $*.d +- +--include $(OBJS:.o=.dep) ++ $(CC) $(ALL_CFLAGS) -c -o $@ $<