mirror of
https://github.com/apache/impala.git
synced 2026-01-15 06:00:38 -05:00
If a static version of zlib and bzip2 is picked up we assumed that it would be compiled with -fPIC. However, this is not always the case. Thus in the non-toolchain case we specifically dynamic link with zlib and bzip2 for the dynamic targets. In addition, this patch removes static linking of libgcc in the toolchain case as LLVM is not able to find the exception handling symbols even if they are present in the binary. Static linking of libgcc is postponed. Next, if Impala is build with -notests the external data source thrift files would not be generated. This patch make sure the dependencies are expressed correctly. Finally, if a user would have google perftools installed on the system we would accidentally pick up the system libraries and the thirdparty headers which will end in linker errors. This patch fixes the path issues. Change-Id: Ic000101c33da26d75a0cd733f7ef02f1bd694937 Reviewed-on: http://gerrit.cloudera.org:8080/460 Reviewed-by: Alex Behm <alex.behm@cloudera.com> Tested-by: Internal Jenkins