summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'sys-fs/dosfstools/files/dosfstools-2.11-build.patch')
-rw-r--r--sys-fs/dosfstools/files/dosfstools-2.11-build.patch19
1 files changed, 19 insertions, 0 deletions
diff --git a/sys-fs/dosfstools/files/dosfstools-2.11-build.patch b/sys-fs/dosfstools/files/dosfstools-2.11-build.patch
new file mode 100644
index 000000000000..2d037ad506b6
--- /dev/null
+++ b/sys-fs/dosfstools/files/dosfstools-2.11-build.patch
@@ -0,0 +1,19 @@
+--- Makefile
++++ Makefile
+@@ -2,13 +2,12 @@
+ # Makefile for dosfstools (mkdosfs and dosfsck)
+ #
+
+-CC = gcc
++CC ?= gcc
+ CPP = $(CC) -E
+-OPTFLAGS = -O2 -fomit-frame-pointer -D_FILE_OFFSET_BITS=64
++OPTFLAGS = -D_FILE_OFFSET_BITS=64
+ WARNFLAGS = -Wall
+ DEBUGFLAGS =
+-CFLAGS = $(OPTFLAGS) $(WARNFLAGS) $(DEBUGFLAGS)
+-LDFLAGS =
++CFLAGS += $(OPTFLAGS) $(WARNFLAGS) $(DEBUGFLAGS)
+
+ PREFIX =/usr
+ SBINDIR = $(PREFIX)/sbin