[Mauiusers] PCRE related Makefile patch for v.3.3.1 as of 072611
David
tecnico at nsstc.uah.edu
Tue Jul 26 10:44:58 MDT 2011
This applies when using --with-pcre=/path on Maui v.3.3.1 @151
(svn://svn.adaptivecomputing.com/maui/branches/3.3.1@151)
The "include/Makefile.inc.pcre.in" file encloses multiple parameters to
a variable with quotes and when passed to the compiler (gcc) it sees
this as one parameter rather than multiple and so it cannot find those
libraries.
ERROR: "/usr/bin/ld: cannot find -lpcreposix -lpcre"
I removed the quotes and generated a patch. It compiled OK after that
(using Linux CentOS5). Here it is.
$ cat pcre.makefile.072611.patch
Index: include/Makefile.inc.pcre.in
===================================================================
--- include/Makefile.inc.pcre.in (revision 151)
+++ include/Makefile.inc.pcre.in (working copy)
@@ -1,6 +1,6 @@
# PCRE Definitions
-export REGEXLIB = "-lpcreposix -lpcre"
+export REGEXLIB = -lpcreposix -lpcre
export REGEXIP = "-I at PCREDIR@/include"
export REGEXLP = "-L at PCREDIR@/lib"
export REGEXDEF = "-DPCRE"
David
More information about the mauiusers
mailing list