You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@impala.apache.org by "Joe McDonnell (JIRA)" <ji...@apache.org> on 2018/05/04 18:13:00 UTC

[jira] [Created] (IMPALA-6974) Static and shared compilation don't have compatible ccache entries

Joe McDonnell created IMPALA-6974:
-------------------------------------

             Summary: Static and shared compilation don't have compatible ccache entries
                 Key: IMPALA-6974
                 URL: https://issues.apache.org/jira/browse/IMPALA-6974
             Project: IMPALA
          Issue Type: Bug
          Components: Backend
    Affects Versions: Impala 2.13.0
            Reporter: Joe McDonnell
            Assignee: Joe McDonnell


In be/CMakeLists.txt, we add an -fPIC flag unconditionally:
{code:java}
# allow linking of static libs into dynamic lib
add_definitions(-fPIC)
{code}
When building in static mode, every command will have an -fPIC flag. However, when building in shared mode, CMake adds -fPIC (or -fPIE) automatically, so every command will have -fPIC plus another -fPIC added by CMake. These extra flags prevent ccache from sharing entries between static and shared builds even after preprocessing.

 



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)