SPECS: mdadm.spec - fixed initrd-mdassemble build (tested only ucl...

sparky sparky at pld-linux.org
Sat Jun 17 13:56:28 CEST 2006


Author: sparky                       Date: Sat Jun 17 11:56:28 2006 GMT
Module: SPECS                         Tag: HEAD
---- Log message:
- fixed initrd-mdassemble build (tested only uclibc at ppc)

---- Files affected:
SPECS:
   mdadm.spec (1.53 -> 1.54) 

---- Diffs:

================================================================
Index: SPECS/mdadm.spec
diff -u SPECS/mdadm.spec:1.53 SPECS/mdadm.spec:1.54
--- SPECS/mdadm.spec:1.53	Sat Jun 17 11:44:14 2006
+++ SPECS/mdadm.spec	Sat Jun 17 13:56:22 2006
@@ -70,8 +70,11 @@
 	UCLIBC_GCC="%{_target_cpu}-uclibc-gcc %{rpmcflags} %{rpmldflags} -static"
 mv -f mdadm.uclibc initrd-mdadm
 %{__make} clean
-%{_target_cpu}-uclibc-gcc -DUCLIBC -DMDASSEMBLE %{rpmcflags} %{rpmldflags} -static \
-	 -o initrd-mdassemble mdassemble.c Assemble.c config.c dlink.c util.c super0.c super1.c
+%{_target_cpu}-uclibc-gcc -DMDASSEMBLE %{rpmcflags} %{rpmldflags} \
+	-DHAVE_STDINT_H -o sha1.o -c sha1.c
+%{_target_cpu}-uclibc-gcc -DUCLIBC -DMDASSEMBLE %{rpmcflags} %{rpmldflags} \
+	-static -o initrd-mdassemble mdassemble.c Assemble.c config.c dlink.c \
+	util.c super0.c super1.c sha1.o
 %else
 %{__make} mdadm.static \
 	CC="%{__cc}" \
@@ -79,8 +82,11 @@
 	LDFLAGS="%{rpmldflags}"
 mv -f mdadm.static initrd-mdadm
 %{__make} clean
+%{__cc} -DMDASSEMBLE %{rpmcflags} %{rpmldflags} -DHAVE_STDINT_H \
+	-o sha1.o -c sha1.c
 %{__cc} -DMDASSEMBLE %{rpmcflags} %{rpmldflags} -static \
-	 -o initrd-mdassemble mdassemble.c Assemble.c config.c dlink.c util.c super0.c super1.c
+	-o initrd-mdassemble mdassemble.c Assemble.c config.c dlink.c \
+	util.c super0.c super1.c sha1.o
 %endif
 %{__make} clean
 %endif
@@ -154,6 +160,9 @@
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
+Revision 1.54  2006/06/17 11:56:22  sparky
+- fixed initrd-mdassemble build (tested only uclibc at ppc)
+
 Revision 1.53  2006/06/17 09:44:14  paszczus
 - updated to 2.5.1 (many changes)
 - rel 0.1 cause builds only without initrd (added TODO)
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/SPECS/mdadm.spec?r1=1.53&r2=1.54&f=u



More information about the pld-cvs-commit mailing list