From: Ralph Ronnquist Date: Sat, 13 Nov 2021 09:10:55 +0000 (+1100) Subject: fixup for order-fussier linker X-Git-Tag: 0.3~10 X-Git-Url: https://git.rrq.au/?a=commitdiff_plain;h=5846647533bff279426f3556dd5c0c01516604d9;p=rrq%2Ffusefile.git fixup for order-fussier linker --- diff --git a/Makefile b/Makefile index c9df3bb..7b12aef 100644 --- a/Makefile +++ b/Makefile @@ -3,8 +3,13 @@ BINS = fusefile default: $(BINS) fusefile: CFLAGS = -Wall -D_FILE_OFFSET_BITS=64 -fusefile: LDFLAGS = -lfuse -fusefile: fusefile.c +fusefile: LDFLAGS = -lfuse -pthread + +.INTERMEDIATE: fusefile.o +fusefile.o: fusefile.c + +fusefile: fusefile.o + $(CC) $(CFLAGS) $(CPPFLAGS) $? $(LDFLAGS) $(TARGET_ARCH) -o $@ clean: rm -f $(BINS)