-
Notifications
You must be signed in to change notification settings - Fork 31
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Simplest change to change from pcre to pcre2 #54
base: master
Are you sure you want to change the base?
Conversation
configure.ac
Outdated
@@ -15,7 +16,8 @@ AC_PATH_PROG([XSLTPROC], [xsltproc]) | |||
PKG_PROG_PKG_CONFIG() | |||
|
|||
PKG_CHECK_MODULES(LIBOAUTH, oauth) | |||
PKG_CHECK_MODULES(LIBPCRE, libpcre) | |||
#PKG_CHECK_MODULES(LIBPCRE2, libpcre2) | |||
PKG_CHECK_MODULES(PCRE2, [libpcre2-8 libpcre2-32]) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just curious: why -8
and -32
?
On my Debian/unstable system I can see:
/usr/lib/x86_64-linux-gnu/pkgconfig/libpcre2-16.pc
/usr/lib/x86_64-linux-gnu/pkgconfig/libpcre2-32.pc
/usr/lib/x86_64-linux-gnu/pkgconfig/libpcre2-8.pc
/usr/lib/x86_64-linux-gnu/pkgconfig/libpcre2-posix.pc
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I've removed the -32
Alright, I added this PR as a patch to the Debian package, and unfortunately the build fails at the linker stage:
If I manually add Looks like there's some more autoconf/automake magic needed to get the needed flags in the needed places. |
Okay, try again (pull request is automatically updated with this correction correction). |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Builds and runs without the -32
configure.ac
Outdated
@@ -15,7 +16,8 @@ AC_PATH_PROG([XSLTPROC], [xsltproc]) | |||
PKG_PROG_PKG_CONFIG() | |||
|
|||
PKG_CHECK_MODULES(LIBOAUTH, oauth) | |||
PKG_CHECK_MODULES(LIBPCRE, libpcre) | |||
#PKG_CHECK_MODULES(LIBPCRE2, libpcre2) | |||
PKG_CHECK_MODULES(PCRE2, [libpcre2-8 libpcre2-32]) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I've removed the -32
Thanks! This looks good indeed. |
No description provided.