This is my configure step inside my ansible script for building mesos:
- name: configure mesos
shell: "LIBS=-lglog LDFLAGS=-L/usr/local/lib
/{{mesos_dir}}/configure
--with-glog=/usr/local"
Basically when you configure it, pass it the --with-* flags.
On Wed, Sep 9, 2015 at 9:07 AM, sujz <[email protected]> wrote:
> Hi all:
> I am trying to run mesos on host which already installed libgflags and
> libglog, so I hope libmesos.so can dynamically loads libgflags and libglog.
>
> If I built mesos with configure && make && make install commands with no
> additional options, and copy released package on destination host, I found
> that it complains depends on libgflags.2 but not depends on libglog.2, so I
> guess libglog is statically linked into libmesos.so, after specifying the
> pre-installed libgflags path and run mesos-master, it produced an ERROR:
> something wrong with flag 'logtostderr' in file 'src/logging.cc'. One
> possibility: file 'src/logging.cc' is being linked both statically and
> dynamically into this executable.
>
> I also tried configure with LIBS='-lglog' --enable-shared=yes
> --enable-static=no or LIBS='-lgflags -lglog' --enable-shared=yes
> --enable-static=no, this time it complains depending on both libgflags and
> libglog, but with no luck, the same error produced.
>
> So could somebody be kind to tell me how to build mesos that can
> dynamically linked against libgflags and libglog that already installed on
> destination host? thank you very much!
--