Skip to content

Commit cbdc52e

Browse files
committed
Link with libexecinfo on FreeBSD
1 parent e5e7f0b commit cbdc52e

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

rts/CMakeLists.txt

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,11 @@ IF (UNIX AND NOT MINGW)
6464

6565
# Needed for dynamically loading shared libraries (on some OS)
6666
LIST(APPEND engineCommonLibraries ${CMAKE_DL_LIBS})
67+
68+
# Needed for backtrace* on some systems
69+
IF(CMAKE_SYSTEM_NAME MATCHES "FreeBSD")
70+
LIST(APPEND engineCommonLibraries execinfo)
71+
ENDIF(CMAKE_SYSTEM_NAME MATCHES "FreeBSD")
6772
ENDIF (UNIX AND NOT MINGW)
6873

6974
FIND_PACKAGE_STATIC(ZLIB REQUIRED)

rts/builds/dedicated/CMakeLists.txt

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,11 @@ IF (UNIX AND NOT MINGW)
3535

3636
# Needed for dynamically loading shared libraries (on some OS)
3737
LIST(APPEND engineDedicatedLibraries ${CMAKE_DL_LIBS})
38+
39+
# Needed for backtrace* on some systems
40+
IF(CMAKE_SYSTEM_NAME MATCHES "FreeBSD")
41+
LIST(APPEND engineDedicatedLibraries execinfo)
42+
ENDIF(CMAKE_SYSTEM_NAME MATCHES "FreeBSD")
3843
ENDIF (UNIX AND NOT MINGW)
3944

4045
IF (MINGW OR APPLE)

0 commit comments

Comments
 (0)