mirror of
https://github.com/EQEmu/Server.git
synced 2025-12-11 12:41:30 +00:00
Remove static unix linking, we dont do automated released anymore and this was tightly coupled to that. Can explore this again if we decide to change that.
This commit is contained in:
parent
42a3780d80
commit
f64e29433e
@ -20,22 +20,8 @@ set(CMAKE_CXX_STANDARD 20)
|
||||
set(CMAKE_CXX_STANDARD_REQUIRED ON)
|
||||
set(CMAKE_CXX_EXTENSIONS OFF)
|
||||
|
||||
option(EQEMU_BUILD_STATIC "Build with static linking" OFF)
|
||||
option(EQEMU_BUILD_PCH "Build with precompiled headers (Windows)" ON)
|
||||
|
||||
if(EQEMU_BUILD_STATIC)
|
||||
set(BUILD_SHARED_LIBS OFF)
|
||||
set(CMAKE_FIND_LIBRARY_SUFFIXES ".lib" ".a")
|
||||
message(STATUS "Building with static linking")
|
||||
set(CMAKE_EXE_LINKER_FLAGS "-static-libgcc -static-libstdc++")
|
||||
if(UNIX)
|
||||
set(PERL_LIBRARY "/opt/eqemu-perl/lib/5.32.1/x86_64-linux-thread-multi/CORE/libperl.so")
|
||||
set(PERL_INCLUDE_PATH "/opt/eqemu-perl/lib/5.32.1/x86_64-linux-thread-multi/CORE/")
|
||||
set(PERL_EXECUTABLE "/opt/eqemu-perl/bin/perl")
|
||||
endif()
|
||||
endif()
|
||||
|
||||
|
||||
# Requires libgoogle-perftools-dev google-perftools packages for linux (debian)
|
||||
if(EQEMU_ADD_PROFILER)
|
||||
set(CMAKE_EXE_LINKER_FLAGS "-Wl,--no-as-needed,-lprofiler,--as-needed")
|
||||
@ -236,9 +222,6 @@ if(PERL_LIBRARY_ENABLED)
|
||||
add_definitions(-DEMBPERL)
|
||||
add_definitions(-DEMBPERL_PLUGIN)
|
||||
add_definitions(-DPERLBIND_NO_STRICT_SCALAR_TYPES)
|
||||
if(UNIX AND EQEMU_BUILD_STATIC)
|
||||
set(SERVER_LIBS ${SERVER_LIBS} libcrypt.a)
|
||||
endif()
|
||||
endif()
|
||||
endif()
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user