[php-src] PR #16568: fix compilation errors on Cygwin
| From: | matyhtf | Date: | Thu, 24 Oct 2024 12:50:30 +0000 |
| Subject: | [php-src] PR #16568: fix compilation errors on Cygwin | ||
| Groups: | php.git-pulls | ||
| Request: | Send a blank email to git-pulls+get-29383@lists.php.net to get a copy of this message | ||
Pull Request: https://github.com/php/php-src/pull/16568
Author: matyhtf
compilation errors when using the
--enable-opcache, --disable-opcache-jit,
and --enable-zts configure options on Cygwin.
The tsrm_get_ls_cache_tcb_offset function is used exclusively in JIT. When JIT is
disabled, this function should also be disabled.
## Error
```shell
/usr/lib/gcc/x86_64-pc-cygwin/12/../../../../x86_64-pc-cygwin/bin/ld: warning: --export-dynamic is
not supported for PE+ targets, did you mean --export-all-symbols?
/usr/lib/gcc/x86_64-pc-cygwin/12/../../../../x86_64-pc-cygwin/bin/ld: TSRM/TSRM.o: in function
`tsrm_get_ls_cache_tcb_offset':
/cygdrive/d/a/swoole-cli/swoole-cli/TSRM/TSRM.c:769:(.text+0xc23): undefined reference to
`_tsrm_ls_cache@gottpoff'
collect2: error: ld returned 1 exit status
make: *** [Makefile:291: bin/swoole-cli] Error 1
```