Skip to content

Commit 52072e6

Browse files
committed
FreeBSD: pickup GNU compat symbols
Find symbols for GNU gettext and sysinfo. Requires `gettext` and `libsysinfo` packages (ports) to be installed.
1 parent 9c613c7 commit 52072e6

File tree

2 files changed

+15
-0
lines changed

2 files changed

+15
-0
lines changed

bin/GCStress/CMakeLists.txt

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,4 +45,11 @@ elseif(NOT CC_TARGET_OS_ANDROID)
4545
)
4646
endif()
4747

48+
if(CC_TARGET_OS_FREEBSD)
49+
set(lib_target "${lib_target}"
50+
"-L/usr/local/lib"
51+
"-lintl"
52+
)
53+
endif()
54+
4855
target_link_libraries (GCStress ${lib_target})

bin/ch/CMakeLists.txt

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -119,6 +119,14 @@ elseif(CC_TARGET_OS_OSX)
119119
endif()
120120
endif()
121121

122+
if(CC_TARGET_OS_FREEBSD)
123+
set(lib_target "${lib_target}"
124+
"-L/usr/local/lib"
125+
"-lintl"
126+
"-lsysinfo"
127+
)
128+
endif()
129+
122130
target_link_libraries (ch
123131
${lib_target}
124132
${CC_LTO_ENABLED}

0 commit comments

Comments
 (0)