aboutsummaryrefslogtreecommitdiff
path: root/update.sh
diff options
context:
space:
mode:
authorBrent Cook <busterb@gmail.com>2019-01-20 20:07:54 -0600
committerBrent Cook <busterb@gmail.com>2019-01-20 20:07:54 -0600
commit0492445a6958d8d7d6b76314b64052ce9e4e762d (patch)
tree70340e8ec2c35624ca222524e41a02e9710aaff8 /update.sh
parent8730803401f3bdc922def1ca01ea8f1f78aa81db (diff)
downloadportable-0492445a6958d8d7d6b76314b64052ce9e4e762d.tar.gz
portable-0492445a6958d8d7d6b76314b64052ce9e4e762d.tar.bz2
portable-0492445a6958d8d7d6b76314b64052ce9e4e762d.zip
always stop the asm generators from calling the C compiler
Diffstat (limited to 'update.sh')
-rwxr-xr-xupdate.sh12
1 files changed, 2 insertions, 10 deletions
diff --git a/update.sh b/update.sh
index 4646bd1..77b7523 100755
--- a/update.sh
+++ b/update.sh
@@ -161,11 +161,7 @@ $GREP -v OPENSSL_ia32cap_P $libcrypto_src/Symbols.list | $GREP '^[A-Za-z0-9_]' >
161# generate assembly crypto algorithms 161# generate assembly crypto algorithms
162asm_src=$libcrypto_src 162asm_src=$libcrypto_src
163gen_asm_stdout() { 163gen_asm_stdout() {
164 if [ $1 = "mingw64" ]; then 164 CC=true perl $asm_src/$2 $1 > $3.tmp
165 CC=true perl $asm_src/$2 $1 > $3.tmp
166 else
167 perl $asm_src/$2 $1 > $3.tmp
168 fi
169 [ $1 = "elf" ] && cat <<-EOF >> $3.tmp 165 [ $1 = "elf" ] && cat <<-EOF >> $3.tmp
170 #if defined(HAVE_GNU_STACK) 166 #if defined(HAVE_GNU_STACK)
171 .section .note.GNU-stack,"",%progbits 167 .section .note.GNU-stack,"",%progbits
@@ -174,11 +170,7 @@ gen_asm_stdout() {
174 $MV $3.tmp $3 170 $MV $3.tmp $3
175} 171}
176gen_asm() { 172gen_asm() {
177 if [ $1 = "mingw64" ]; then 173 CC=true perl $asm_src/$2 $1 $3.tmp
178 CC=true perl $asm_src/$2 $1 $3.tmp
179 else
180 perl $asm_src/$2 $1 $3.tmp
181 fi
182 [ $1 = "elf" ] && cat <<-EOF >> $3.tmp 174 [ $1 = "elf" ] && cat <<-EOF >> $3.tmp
183 #if defined(HAVE_GNU_STACK) 175 #if defined(HAVE_GNU_STACK)
184 .section .note.GNU-stack,"",%progbits 176 .section .note.GNU-stack,"",%progbits