extract libgbeinterp.so from runtime (libcl.so)
authorGuo Yejun <yejun.guo@intel.com>
Thu, 29 May 2014 22:29:09 +0000 (06:29 +0800)
committerZhigang Gong <zhigang.gong@intel.com>
Fri, 30 May 2014 06:23:04 +0000 (14:23 +0800)
commitf9074f9ff4e24da2ee92fc84a8dcff0604346d28
tree575092aec22f32f1de447c499fe3bf6d0eaa7fc9
parentc34eba71bd5a518906d6d5d3ba26e44327cab251
extract libgbeinterp.so from runtime (libcl.so)

currently, there are same symbol names in libinterp.a (inside
libcl.so) and libgbe.so (compiler), and so have to dlopen libgbe.so
with RTLD_DEEPBIND, this flag makes std::cerr inside libgbe crash.

extract the interp part from libcl.so as libgbeinterp.so, therefore,
first dlopen libgbe.so without RTLD_DEEPBIND, then dlopen libgbeinterp.so
with RTLD_DEEPBIND, to fix the std:cerr crash issue.

Signed-off-by: Guo Yejun <yejun.guo@intel.com>
Reviewed-by: Zhigang Gong <zhigang.gong@linux.intel.com>
backend/CMakeLists.txt
backend/src/CMakeLists.txt
backend/src/GBEConfig.h.in
src/CMakeLists.txt
src/cl_api.c
src/cl_gbe_loader.cpp
src/cl_gbe_loader.h
src/cl_program.c
src/intel/intel_driver.c
utests/setenv.sh.in