Skip to content
Snippets Groups Projects
Commit 782e33c4 authored by Pere Mato Vila's avatar Pere Mato Vila
Browse files

Further fix for ROOT-6583 concerning the pythia6_nolink option

parent 3787478a
No related branches found
No related tags found
No related merge requests found
......@@ -10,10 +10,18 @@ ROOT_USE_PACKAGE(math/physics)
ROOT_GENERATE_DICTIONARY(G__Pythia6 *.h MODULE EGPythia6 LINKDEF LinkDef.h)
if(pythia6_nolink)
string(REGEX REPLACE "-Wl,--no-undefined" "" CMAKE_SHARED_LINKER_FLAGS "${CMAKE_SHARED_LINKER_FLAGS}")
ROOT_LINKER_LIBRARY(EGPythia6 *.cxx G__Pythia6.cxx LIBRARIES Core DEPENDENCIES EG Graf VMC Physics)
set(PYTHIA6_LIBRARIES)
if(ROOT_PLATFORM STREQUAL linux)
string(REGEX REPLACE "-Wl,--no-undefined" "" CMAKE_SHARED_LINKER_FLAGS "${CMAKE_SHARED_LINKER_FLAGS}")
elseif(ROOT_PLATFORM STREQUAL macosx)
set(CMAKE_SHARED_LINKER_FLAGS "${CMAKE_SHARED_LINKER_FLAGS} -undefined dynamic_lookup")
endif()
else()
ROOT_LINKER_LIBRARY(EGPythia6 *.cxx G__Pythia6.cxx LIBRARIES Core ${PYTHIA6_LIBRARIES} DEPENDENCIES EG Graf VMC Physics)
if(MSVC)
SET(CMAKE_SHARED_LINKER_FLAGS "${CMAKE_SHARED_LINKER_FLAGS} /SAFESEH:NO ")
link_directories($ENV{LIB})
endif()
endif()
ROOT_LINKER_LIBRARY(EGPythia6 *.cxx G__Pythia6.cxx LIBRARIES Core ${PYTHIA6_LIBRARIES} DEPENDENCIES EG Graf VMC Physics)
ROOT_INSTALL_HEADERS()
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