patch-Makefile 1.1 KB

12345678910111213141516171819202122232425262728293031
  1. --- dosfstools-3.0.26.orig/Makefile 2014-01-17 07:09:28.000000000 +0100
  2. +++ dosfstools-3.0.26/Makefile 2014-05-05 13:38:09.000000000 +0200
  3. @@ -32,7 +32,9 @@ 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)
  10. +LDLIBS = -liconv
  11. VPATH = src
  12. @@ -48,7 +50,7 @@ mkfs.fat: mkfs.fat.o
  13. rebuild: distclean build
  14. -install: install-bin install-doc install-man install-symlinks
  15. +install: install-bin install-symlinks
  16. install-bin: build
  17. install -d -m 0755 $(DESTDIR)/$(SBINDIR)
  18. @@ -73,7 +75,7 @@ install-man:
  19. install -D -m 0644 $${MANPAGE} $(DESTDIR)/$(MANDIR)/$${LANGUAGE}/man$${SECTION}/$$(basename $${MANPAGE} .$${LANGUAGE}.$${SECTION}).$${SECTION}; \
  20. done; \
  21. done
  22. -install-symlinks: install-bin install-man
  23. +install-symlinks: install-bin
  24. if [ -e $(DESTDIR)/$(SBINDIR)/fatlabel ]; \
  25. then \
  26. ln -sf fatlabel $(DESTDIR)/$(SBINDIR)/dosfslabel; \