[ 
https://issues.apache.org/jira/browse/IMPALA-6974?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Joe McDonnell resolved IMPALA-6974.
-----------------------------------
       Resolution: Fixed
    Fix Version/s: Impala 2.13.0

> 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
>            Priority: Major
>             Fix For: Impala 2.13.0
>
>
> 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)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to