From 88c313ca706e741940df95e4d03e3726d051cbaf Mon Sep 17 00:00:00 2001 From: Justin Swanhart Date: Sun, 29 May 2016 22:32:28 -0400 Subject: [PATCH] [MCOL-69] Attempt rpath change in top level autoconf macro file --- Makefile.am | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/Makefile.am b/Makefile.am index 055f5bb8f..800813ea3 100644 --- a/Makefile.am +++ b/Makefile.am @@ -18,6 +18,26 @@ # $Id$ ACLOCAL_AMFLAGS = -I ./m4 +# FIXME: +# this sets the local linker path (-rpath) so that the ColumnStore +# libraries and binaries know where to look for the necessary +# libraries. This is almost certainly a wrong approach, as +# MySQL should look in the plugin path for libraries, but that +# path comes from CMake, not from autotools. For now, until +# the ColumnStore engine is integrated with CMake into the +# MariaDB server, the prefix must be set the same for the +# MariaDB compilation and the engine compilation. I can't see +# a way around that for now. +# +# FIXME: +# a second problem here is that this manually specifies +# the realtime library and a custom boost library. These +# should be detected and used automatically by the autotools +# process. A custom boost library should not be needed +# either. The system boost should be used. I am not aware if +# there are changes made to this custom boost, so I am leaving +# this AS IS for now. +AM_LIBTOOLFLAGS = -Wl,-rpath -Wl,$(prefix)/lib -lrt -lboost_idb all-local: bootstrap cd utils && $(MAKE) && $(MAKE) install