]> git.pld-linux.org Git - packages/changepassword.git/commitdiff
- use optflags, asm on x86
authorJakub Bogusz <qboosh@pld-linux.org>
Sat, 12 May 2007 09:09:02 +0000 (09:09 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    changepassword.spec -> 1.31

changepassword.spec

index 1d3f662cc4c65b0d65a1223ac79a2bbd924adf9e..769ab926f0bf4bd000fef736263846b15e6c9fc2 100644 (file)
@@ -52,11 +52,19 @@ tar -xf smbencrypt/libdes-4.04b.tar.gz
        --disable-squidpasswd
 %endif
 
-cd des
-%{__make}
-install libdes.a ../smbencrypt
-cd ..
-%{__make}
+%{__make} -C des \
+       CC="%{__cc}" \
+%ifarch %{ix86}
+       DES_INC="asm/dx86-elf.o asm/yx86-elf.o" \
+       CFLAG="%{rpmcflags} -DELF"
+%else
+       CFLAG="%{rpmcflags}"
+%endif
+install des/libdes.a smbencrypt
+
+%{__make} \
+       CC="%{__cc}" \
+       CFLAGS="%{rpmcflags}"
 
 %install
 rm -rf $RPM_BUILD_ROOT
This page took 0.177879 seconds and 4 git commands to generate.