Skip to content

bugfix: ensured the 'pcre_version' symbol is preserved and undefined when PCRE is statically linked.#168

Closed
thibaultcha wants to merge 3 commits into
openresty:masterfrom
thibaultcha:fix/static-libpcre
Closed

bugfix: ensured the 'pcre_version' symbol is preserved and undefined when PCRE is statically linked.#168
thibaultcha wants to merge 3 commits into
openresty:masterfrom
thibaultcha:fix/static-libpcre

Conversation

@thibaultcha
Copy link
Copy Markdown
Member

@thibaultcha thibaultcha commented Jul 11, 2019

I hereby granted the copyright of the changes in this pull request
to the authors of this lua-nginx-module project.

The API version of this module has been bumped to ensure lua-resty-core's compatibility. Currently, lua-resty-core with a statically linked PCRE prevents resty.core.regex and ngx.re from loading.

Sister PRs:

…d when PCRE is statically linked.

When using `--with-pcre=...`, NGINX is statically linked against
libpcre.a. Since `pcre_version()` is unused, its symbol is stripped by
the linker. Because lua-resty-core's `resty.core.regex` module needs it,
we here ensure that the symbol is entered as undefined in our final
binary.

This should not be an issue for win32 builds since
`--export-all-symbols` is already set.
@thibaultcha thibaultcha deleted the fix/static-libpcre branch July 12, 2019 00:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants