Enable -fPIC for static compat libraries
Generate static compat libraries with Position Independent Code in order to let these files to be used when linking to shared libraries.
This commit is contained in:
parent
a60ec15249
commit
9bd0cafffb
1 changed files with 1 additions and 1 deletions
|
|
@ -118,7 +118,7 @@ _EOF_
|
|||
# defining BUILD_SHARED_LIBS disables the static library
|
||||
%undefine _cmake_shared_libs
|
||||
# Disable new strategies in order to keep compatibility with zlib.
|
||||
%cmake %{cmake_param} -DZLIB_COMPAT=ON -DWITH_NEW_STRATEGIES=OFF
|
||||
%cmake %{cmake_param} -DZLIB_COMPAT=ON -DWITH_NEW_STRATEGIES=OFF -DCMAKE_POSITION_INDEPENDENT_CODE=ON
|
||||
%cmake_build
|
||||
%endif
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue