Commit 6b6a955
committed
tools: update openssl x86 assembly ifdef workaround
Some sed lines were previously used to change from C-style #ifdef
to nasm-style %ifdef in x86asm.pl for 32-bit Windows builds,
but this creates problems when the C preprocessor is used before
the assembler to build x86 assembly files.
OpenSSL is using C preprocessor before nasm and uses #ifdef
in this context.
The perl line added to update-openssl.sh will work around the ifdef
issue in a way that enables building for win32 and other x86.
After update-openssl.sh script is run with "regenerate", x86asm.pl
will end up with a modified "endbranch" subroutine that can use
2 types of ifdef (nasm-style %ifdef for win32 and gcc-style #ifdef
for others). Then, after x86asm.pl is run during the node openssl
build process, x86 assembly files may change their ifdef and endif
lines depending on the system they are built for.
Issues that lead to this commit:
* openssl/openssl#18459
* nodejs#43603 (comment)
* nodejs#448221 parent 77a0a0f commit 6b6a955
1 file changed
Lines changed: 20 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
70 | 70 | | |
71 | 71 | | |
72 | 72 | | |
73 | | - | |
74 | | - | |
75 | | - | |
76 | | - | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
77 | 93 | | |
78 | 94 | | |
79 | 95 | | |
| |||
0 commit comments