patch-Makefile 1.1 KB

123456789101112131415161718192021222324252627282930
  1. --- dosfstools-3.0.26.orig/Makefile 2014-01-17 07:09:28.000000000 +0100
  2. +++ dosfstools-3.0.26/Makefile 2014-06-25 12:07:32.125122609 +0200
  3. @@ -32,7 +32,8 @@ OPTFLAGS = -O2 -fomit-frame-pointer -D_G
  4. #WARNFLAGS = -Wall -pedantic -std=c99
  5. WARNFLAGS = -Wall -Wextra -Wno-sign-compare -Wno-missing-field-initializers -Wmissing-prototypes -Wstrict-prototypes
  6. DEBUGFLAGS = -g
  7. -CFLAGS += $(OPTFLAGS) $(WARNFLAGS) $(DEBUGFLAGS)
  8. +CFLAGS ?=
  9. +CFLAGS += $(WARNFLAGS) -D_GNU_SOURCE -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64
  10. VPATH = src
  11. @@ -48,7 +49,7 @@ mkfs.fat: mkfs.fat.o
  12. rebuild: distclean build
  13. -install: install-bin install-doc install-man install-symlinks
  14. +install: install-bin install-symlinks
  15. install-bin: build
  16. install -d -m 0755 $(DESTDIR)/$(SBINDIR)
  17. @@ -73,7 +74,7 @@ install-man:
  18. install -D -m 0644 $${MANPAGE} $(DESTDIR)/$(MANDIR)/$${LANGUAGE}/man$${SECTION}/$$(basename $${MANPAGE} .$${LANGUAGE}.$${SECTION}).$${SECTION}; \
  19. done; \
  20. done
  21. -install-symlinks: install-bin install-man
  22. +install-symlinks: install-bin
  23. if [ -e $(DESTDIR)/$(SBINDIR)/fatlabel ]; \
  24. then \
  25. ln -sf fatlabel $(DESTDIR)/$(SBINDIR)/dosfslabel; \