aboutsummaryrefslogtreecommitdiff
path: root/update.sh
diff options
context:
space:
mode:
authorkinichiro <kinichiro.inoguchi@gmail.com>2019-05-19 13:20:06 +0900
committerBrent Cook <busterb@gmail.com>2019-06-10 06:49:34 -0500
commitbbb662b69c48c07d93e642548c0f71ebbdc06d93 (patch)
tree3a174b52524071b7151b54a4c618315a06886ad7 /update.sh
parentc6f8ca2bc6b5bd8ca8842326f74e0cff007766ad (diff)
downloadportable-bbb662b69c48c07d93e642548c0f71ebbdc06d93.tar.gz
portable-bbb662b69c48c07d93e642548c0f71ebbdc06d93.tar.bz2
portable-bbb662b69c48c07d93e642548c0f71ebbdc06d93.zip
Fix masm build
- Fix masm operators and comments - Add -DOPENSSL_NO_ASM only if not 64 bit build - Add -DCMAKE_INSTALL_PREFIX to avoid build error
Diffstat (limited to '')
-rwxr-xr-xupdate.sh14
1 files changed, 12 insertions, 2 deletions
diff --git a/update.sh b/update.sh
index 99a293a..d1fe017 100755
--- a/update.sh
+++ b/update.sh
@@ -168,7 +168,12 @@ gen_asm_stdout() {
168 #endif 168 #endif
169 EOF 169 EOF
170 if [ $1 = "masm" ]; then 170 if [ $1 = "masm" ]; then
171 cpp -I./crypto $3.tmp > $3 171 cpp -I./crypto $3.tmp \
172 | sed -e 's/^#/;/' \
173 | sed -e 's/|/OR/g' \
174 | sed -e 's/~/NOT/g' \
175 | sed -e 's/1 << \([0-9]*\)/1 SHL \1/g' \
176 > $3
172 else 177 else
173 $MV $3.tmp $3 178 $MV $3.tmp $3
174 fi 179 fi
@@ -181,7 +186,12 @@ gen_asm() {
181 #endif 186 #endif
182 EOF 187 EOF
183 if [ $1 = "masm" ]; then 188 if [ $1 = "masm" ]; then
184 cpp -I./crypto $3.tmp > $3 189 cpp -I./crypto $3.tmp \
190 | sed -e 's/^#/;/' \
191 | sed -e 's/|/OR/g' \
192 | sed -e 's/~/NOT/g' \
193 | sed -e 's/1 << \([0-9]*\)/1 SHL \1/g' \
194 > $3
185 else 195 else
186 $MV $3.tmp $3 196 $MV $3.tmp $3
187 fi 197 fi