diff options
author | Pavan Deolasee | 2011-05-21 21:04:40 +0000 |
---|---|---|
committer | Pavan Deolasee | 2011-05-21 21:04:40 +0000 |
commit | 07a3dce533cd254d470ea1fbacfc1fe92d42e40d (patch) | |
tree | a8e08391040ea635f3503a8b507444e9c96599a3 | |
parent | c1ce7a741080d0a087945a93e4346bc270a65722 (diff) |
Add a -lpthread flag to the LDFLAGS. This is quite ugly since we
shouldn't really be hard-coding that and it migth fail if pthread
is not available on some other platform. But for the time-being,
picking it from the current PGXC-master branch for the compilation
to succeed
-rw-r--r-- | src/Makefile.global.in | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/Makefile.global.in b/src/Makefile.global.in index 280578a4c3..a82a301ee4 100644 --- a/src/Makefile.global.in +++ b/src/Makefile.global.in @@ -240,11 +240,13 @@ ld_R_works = @ld_R_works@ # to be a "recursively expanded" variable, else adjustments to rpathdir # don't work right. So we must NOT do LDFLAGS := something, meaning this has # to be done first and elsewhere we must only do LDFLAGS += something. +# PGXC_BEGIN ifdef PGXS - LDFLAGS = -L$(libdir) + LDFLAGS = -L$(libdir) -lpthread else - LDFLAGS = -L$(top_builddir)/src/port + LDFLAGS = -L$(top_builddir)/src/port -lpthread endif +# PGXC_END LDFLAGS += @LDFLAGS@ LDFLAGS_EX = @LDFLAGS_EX@ |