Added an explicit -lpthread *after* -lre2 in LIBS in Makefile.regexp-re2.
Added an explicit -lpthread *after* -lre2 in LIBS in Makefile.regexp-re2.

[suggested by Brad]

Before this mod, Chapel-generated C code would not link when:

* the Chapel tree is built with

 CHPL_HOST_PLATFORM=linux64
 CHPL_REGEXP=re2

* the Chapel compiler is invoked with --static.

We were getting errors like this:

.../third-party/re2/install/linux64-gnu/lib/libre2.a(re2.o): In function `re2::Mutex::Lock()':
re2.cc:(.text._ZN3re25Mutex4LockEv[re2::Mutex::Lock()]+0x11): undefined reference to `pthread_rwlock_wrlock'

LIBS += -lpthread is already done in Makefile.threads-pthreads,
however when compiling Chapel-generated C code, that comes prior
to -lre2 from Makefile.regexp-re2, i.e. the link command is:

  g++ ... -lchpl -lm  -lpthread -lre2

All that's needed for static linking is to have -lpthread after -lre2.
The mod in this commit, while adding a redundancy, is the simplest way
to get there that we thought of.


git-svn-id: 88467cb1fb04b8a755be7e1ee1026be4190196ef@23185 3a8e244f-b0f2-452b-bcba-4c88e055c3ca

sungeunchoi/chapel,CoryMcCartan/chapel,CoryMcCartan/chapel,hildeth/chapel,CoryMcCartan/chapel,chizarlicious/chapel,CoryMcCartan/chapel,CoryMcCartan/chapel,CoryMcCartan/chapel,hildeth/chapel,sungeunchoi/chapel,sungeunchoi/chapel,chizarlicious/chapel,chizarlicious/chapel,chizarlicious/chapel,sungeunchoi/chapel,hildeth/chapel,chizarlicious/chapel,sungeunchoi/chapel,sungeunchoi/chapel,sungeunchoi/chapel,hildeth/chapel,hildeth/chapel,chizarlicious/chapel,sungeunchoi/chapel,hildeth/chapel,CoryMcCartan/chapel,hildeth/chapel,chizarlicious/chapel