| List: | MySQL++ | « Previous MessageNext Message » | |
| From: | Warren Young | Date: | October 16 2011 12:13am |
| Subject: | Re: [PATCH] for 'can not be used when making a shared object; recompile with -fPIC' error | ||
| View as plain text | |||
On 10/14/2011 8:43 AM, Adrian Cornish wrote: > > -<cxxflags>@PTHREAD_CFLAGS@</cxxflags> > +<cxxflags>@PTHREAD_CFLAGS@ -fPIC</cxxflags> Doesn't that tie us to GCC? Certainly that is by far the most common compiler for the autoconf case, but we've had reports on list in the past from AIX and Solaris native compiler users. You should turn this into an autoconf test. See config/socket_nsl.m4. It shows how to conditionally figure out if certain compiler flags are needed. Linker flags in that case, but the availability of -fPIC can be detected the same way.
| Thread | ||
|---|---|---|
| • [PATCH] for 'can not be used when making a shared object; recompilewith -fPIC' error | Adrian Cornish | 14 Oct |
| • Re: [PATCH] for 'can not be used when making a shared object; recompilewith -fPIC' error | Warren Young | 16 Oct |
| • Re: [PATCH] for 'can not be used when making a shared object;recompile with -fPIC' error | Adrian Cornish | 18 Oct |
| • Re: [PATCH] for 'can not be used when making a shared object; recompile with -fPIC' error | Warren Young | 27 Oct |
