Files
impala/cmake_modules/FindPICLibs.cmake
Henry Robinson 177b9ba3b1 Remove nonblocking server (and dependencies) from build
Goodnight, sweet non-blocking prince. We didn't support, or test, this
configuration, and it doesn't work with security or sessions and brings
in some annoying dependencies that are a pain to build.

We have other RPC-stack options to investigate; we may wind up re-adding
the non-blocking server but only in a way that supports all required
features more regularly.

Change-Id: Ifbcabc5014441f6d31c342c4e288dd7fc6201443
2014-01-08 10:54:35 -08:00

17 lines
636 B
CMake

# In order to statically link in the Boost, bz2, event and z libraries, they
# needs to be recompiled with -fPIC. Set $PIC_LIB_PATH to the location of
# these libraries in the environment, or dynamic linking will be used instead.
IF (DEFINED ENV{PIC_LIB_PATH})
set(CMAKE_SKIP_RPATH TRUE)
set(Boost_USE_STATIC_LIBS ON)
set(Boost_USE_STATIC_RUNTIME ON)
set(LIBBZ2 $ENV{PIC_LIB_PATH}/lib/libbz2.a)
set(LIBZ $ENV{PIC_LIB_PATH}/lib/libz.a)
ELSE (DEFINED ENV{PIC_LIB_PATH})
set(Boost_USE_STATIC_LIBS OFF)
set(Boost_USE_STATIC_RUNTIME OFF)
set(LIBBZ2 -lbz2)
set(LIBZ -lz)
ENDIF (DEFINED ENV{PIC_LIB_PATH})