]> git.draconx.ca Git - gentoo-draconx.git/blob - net-mail/notmuchfs/files/notmuchfs-fix-build.patch
Add notmuchfs ebuild.
[gentoo-draconx.git] / net-mail / notmuchfs / files / notmuchfs-fix-build.patch
1 diff --git a/Makefile b/Makefile
2 index 7c13b9275e0f..25765f76110e 100644
3 --- a/Makefile
4 +++ b/Makefile
5 @@ -19,7 +19,7 @@
6  #
7  # Authors: Tim Stoakes <tim@stoakes.net>
8  
9 -CFLAGS = -g -O2 -std=c99 -Wall -Werror -D_FILE_OFFSET_BITS=64
10 +ALL_CFLAGS = -std=c99 -D_FILE_OFFSET_BITS=64 $(CFLAGS)
11  
12  OBJS = notmuchfs.o
13  
14 @@ -28,16 +28,10 @@ LIBS = -lnotmuch -lfuse
15  all: notmuchfs
16  
17  notmuchfs: $(OBJS)
18 -       $(CC) -o $@ $+ $(LIBS)
19 +       $(CC) $(ALL_CFLAGS) $(LDFLAGS) -o $@ $+ $(LIBS)
20  
21  clean:
22         rm -f *.o *.dep notmuchfs
23  
24  %.o : %.c
25 -       $(COMPILE.c) -MD -o $@ $<
26 -       @cp $*.d $*.dep; \
27 -    sed -e 's/#.*//' -e 's/^[^:]*: *//' -e 's/ *\\$$//' \
28 -        -e '/^$$/ d' -e 's/$$/ :/' < $*.d >> $*.dep; \
29 -    rm -f $*.d
30 -
31 --include $(OBJS:.o=.dep)
32 +       $(CC) $(ALL_CFLAGS) -c -o $@ $<