[Privoxy-devel] todo 166: windows current pcre library
Lee
ler762 at gmail.com
Fri Dec 18 04:30:21 UTC 2020
I got privoxy to build without the static pcre library.
I don't understand what's going on, but "-lpcre" fails with "-static"
$ i686-w64-mingw32-gcc -o a.exe -static conftest-pcre.c -lpcreposix -lpcre
/usr/lib/gcc/i686-w64-mingw32/10/../../../../i686-w64-mingw32/bin/ld:
cannot find -lpcreposix
/usr/lib/gcc/i686-w64-mingw32/10/../../../../i686-w64-mingw32/bin/ld:
cannot find -lpcre
collect2: error: ld returned 1 exit status
but works without:
Lee at i3668 ~/t
$ i686-w64-mingw32-gcc -o a.exe conftest-pcre.c -lpcreposix -lpcre
Lee at i3668 ~/t
$ cat conftest-pcre.c
/* i686-w64-mingw32-gcc -o a.exe -static conftest-pcre.c -lpcreposix -lpcre
* and yet this works
* i686-w64-mingw32-gcc -o a.exe conftest-pcre.c -lpcreposix -lpcre
*/
char pcre_compile ();
char regcomp ();
int main () {
return pcre_compile ();
return regcomp ();
;
return 0;
}
Lee
More information about the Privoxy-devel
mailing list