Skip to content
Snippets Groups Projects
Unverified Commit 403c62c0 authored by Guilherme Amadio's avatar Guilherme Amadio
Browse files

Compile mathtext, minicern, rpdutil, and rsa with -fPIC

These are temporary static libraries that need to be linked to a
final shared library, so they must be compiled with -fPIC.
parent a2aa5299
No related branches found
No related tags found
No related merge requests found
ROOT_LINKER_LIBRARY(mathtext *.cxx TYPE STATIC NOINSTALL)
set_property(TARGET mathtext PROPERTY POSITION_INDEPENDENT_CODE ON)
......@@ -2,8 +2,8 @@
# CMakeLists.txt file for building ROOT misc/minicern package
############################################################################
set(CMAKE_Fortran_FLAGS "${CMAKE_Fortran_FLAGS} -fPIC")
ROOT_LINKER_LIBRARY(minicern *.c *.f TYPE STATIC NOINSTALL)
set_property(TARGET minicern PROPERTY POSITION_INDEPENDENT_CODE ON)
target_link_libraries(minicern ${CMAKE_Fortran_IMPLICIT_LINK_LIBRARIES})
# Disable optimization since it some cases was causing crashes.
......
......@@ -25,6 +25,7 @@ include_directories(${CMAKE_CURRENT_SOURCE_DIR}/res)
add_library(rsa STATIC ${CMAKE_CURRENT_SOURCE_DIR}/src/rsaaux.cxx
${CMAKE_CURRENT_SOURCE_DIR}/src/rsalib.cxx
${CMAKE_CURRENT_SOURCE_DIR}/src/rsafun.cxx)
set_property(TARGET rsa PROPERTY POSITION_INDEPENDENT_CODE ON)
add_dependencies(rsa move_headers)
if(ssl)
......
......@@ -35,6 +35,7 @@ endif()
#---static library needed for rootd and proofd --------------------------------------------
add_library(rpdutil STATIC ${rpdutilsrcs})
set_property(TARGET rpdutil PROPERTY POSITION_INDEPENDENT_CODE ON)
add_dependencies(rpdutil move_headers)
ROOT_LINKER_LIBRARY(SrvAuth rpdutils.cxx ssh.cxx LIBRARIES rpdutil rsa ${CRYPTLIBS} ${GLOBUS_LIBRARIES} ${OPENSSL_LIBRARIES} DEPENDENCIES Net BUILTINS OPENSSL)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment