fix gcc -E not dumping output with .s ext, works with .S auto/ac/openssl-1.0.1j-3
authorElan Ruusamäe <glen@delfi.ee>
Thu, 1 Jan 2015 21:02:56 +0000 (23:02 +0200)
committerElan Ruusamäe <glen@delfi.ee>
Thu, 1 Jan 2015 21:38:52 +0000 (23:38 +0200)
gcc-E-asm.patch [new file with mode: 0644]
openssl.spec

diff --git a/gcc-E-asm.patch b/gcc-E-asm.patch
new file mode 100644 (file)
index 0000000..3242725
--- /dev/null
@@ -0,0 +1,46 @@
+gcc -E does nothing for .s, need .S for preprocess to output
+
+--- openssl-1.0.1j/crypto/Makefile~    2015-01-01 23:00:33.000000000 +0200
++++ openssl-1.0.1j/crypto/Makefile     2015-01-01 23:00:35.000000000 +0200
+@@ -79,7 +79,7 @@
+ ppccpuid.s:   ppccpuid.pl;    $(PERL) ppccpuid.pl $(PERLASM_SCHEME) $@
+ pariscid.s:   pariscid.pl;    $(PERL) pariscid.pl $(PERLASM_SCHEME) $@
+ alphacpuid.s: alphacpuid.pl
+-      (preproc=/tmp/$$$$.$@; trap "rm $$preproc" INT; \
++      (preproc=/tmp/$$$$.$@.S; trap "rm $$preproc" INT; \
+       $(PERL) alphacpuid.pl > $$preproc && \
+       $(CC) -E $$preproc > $@ && rm $$preproc)
+--- openssl-1.0.1j/crypto/modes/Makefile~      2014-10-15 15:54:35.000000000 +0300
++++ openssl-1.0.1j/crypto/modes/Makefile       2015-01-01 23:17:28.000000000 +0200
+@@ -53,7 +53,7 @@
+ ghash-sparcv9.s:      asm/ghash-sparcv9.pl
+       $(PERL) asm/ghash-sparcv9.pl $@ $(CFLAGS)
+ ghash-alpha.s:        asm/ghash-alpha.pl
+-      (preproc=/tmp/$$$$.$@; trap "rm $$preproc" INT; \
++      (preproc=/tmp/$$$$.$@.S; trap "rm $$preproc" INT; \
+       $(PERL) asm/ghash-alpha.pl > $$preproc && \
+       $(CC) -E $$preproc > $@ && rm $$preproc)
+--- openssl-1.0.1j/crypto/sha/Makefile~        2014-10-15 15:54:34.000000000 +0300
++++ openssl-1.0.1j/crypto/sha/Makefile 2015-01-01 23:19:33.000000000 +0200
+@@ -60,7 +60,7 @@
+       $(PERL) $< $(PERLASM_SCHEME) $@
+ sha1-alpha.s: asm/sha1-alpha.pl
+-      (preproc=/tmp/$$$$.$@; trap "rm $$preproc" INT; \
++      (preproc=/tmp/$$$$.$@.S; trap "rm $$preproc" INT; \
+       $(PERL) asm/sha1-alpha.pl > $$preproc && \
+       $(CC) -E $$preproc > $@ && rm $$preproc)
+--- openssl-1.0.1j/crypto/bn/Makefile~ 2015-01-01 23:21:25.000000000 +0200
++++ openssl-1.0.1j/crypto/bn/Makefile  2015-01-01 23:21:28.000000000 +0200
+@@ -125,7 +125,7 @@
+ ppc64-mont.s: asm/ppc64-mont.pl;$(PERL) asm/ppc64-mont.pl $(PERLASM_SCHEME) $@
+ alpha-mont.s: asm/alpha-mont.pl
+-      (preproc=/tmp/$$$$.$@; trap "rm $$preproc" INT; \
++      (preproc=/tmp/$$$$.$@.S; trap "rm $$preproc" INT; \
+       $(PERL) asm/alpha-mont.pl > $$preproc && \
+       $(CC) -E $$preproc > $@ && rm $$preproc)
index 39e6135751b7f79afd41962ba5b3aee6274540c2..bd1f694fd968be6f411070fa8eff518efff5ed02 100644 (file)
@@ -37,11 +37,11 @@ Patch5:             %{name}-asflag.patch
 Patch6:                %{name}-ca-certificates.patch
 Patch7:                %{name}-ldflags.patch
 Patch8:                %{name}-find.patch
-# from debian
+Patch9:                gcc-E-asm.patch
 Patch10:       default_bits.patch
 Patch11:       pic.patch
 Patch12:       stddef.patch
-Patch13:       openssl_fix_for_x32.patch
+Patch13:       %{name}_fix_for_x32.patch
 URL:           http://www.openssl.org/
 BuildRequires: bc
 BuildRequires: perl-devel >= 1:5.6.1
@@ -259,6 +259,7 @@ RC4, RSA и SSL. Включает статические библиотеки д
 %patch6 -p1
 %patch7 -p1
 %patch8 -p1
+%patch9 -p1
 %patch10 -p1
 %patch11 -p1
 %patch12 -p1
This page took 0.063352 seconds and 4 git commands to generate.