summaryrefslogtreecommitdiffstats
path: root/sys-apps/mkinitrd/files/mdadm-ds-static.patch
diff options
context:
space:
mode:
Diffstat (limited to 'sys-apps/mkinitrd/files/mdadm-ds-static.patch')
-rw-r--r--sys-apps/mkinitrd/files/mdadm-ds-static.patch22
1 files changed, 22 insertions, 0 deletions
diff --git a/sys-apps/mkinitrd/files/mdadm-ds-static.patch b/sys-apps/mkinitrd/files/mdadm-ds-static.patch
new file mode 100644
index 0000000..bd6afb4
--- /dev/null
+++ b/sys-apps/mkinitrd/files/mdadm-ds-static.patch
@@ -0,0 +1,22 @@
+diff -dPNur mdadm-2.1/Makefile mdadm-2.1-new/Makefile
+--- mdadm-2.1/Makefile 2005-09-05 00:54:55.000000000 +0000
++++ mdadm-2.1-new/Makefile 2006-01-05 16:45:15.000000000 +0000
+@@ -39,15 +39,15 @@
+
+ CC = $(CROSS_COMPILE)gcc
+ CXFLAGS = -ggdb
+-CWFLAGS = -Wall -Werror -Wstrict-prototypes
++CWFLAGS = -Wall -Wstrict-prototypes
+ SYSCONFDIR = /etc
+ CONFFILE = $(SYSCONFDIR)/mdadm.conf
+ MAILCMD =/usr/sbin/sendmail -t
+ CFLAGS = $(CWFLAGS) -DCONFFILE=\"$(CONFFILE)\" $(CXFLAGS) -DSendmail=\""$(MAILCMD)"\"
+
+ # If you want a static binary, you might uncomment these
+-# LDFLAGS = -static
+-# STRIP = -s
++LDFLAGS = -static
++STRIP = -s
+
+ INSTALL = /usr/bin/install
+ DESTDIR =