Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
yangql
googletest
Commits
9e3fb4ea
Commit
9e3fb4ea
authored
Oct 08, 2021
by
Yesudeep Mangalapilly
Browse files
Fix linker errors on FreeBSD.
parent
075810f7
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
0 deletions
+12
-0
BUILD.bazel
BUILD.bazel
+12
-0
No files found.
BUILD.bazel
View file @
9e3fb4ea
...
@@ -46,6 +46,16 @@ config_setting(
...
@@ -46,6 +46,16 @@ config_setting(
constraint_values
=
[
"@platforms//os:windows"
],
constraint_values
=
[
"@platforms//os:windows"
],
)
)
config_setting
(
name
=
"freebsd"
,
constraint_values
=
[
"@platforms//os:freebsd"
],
)
config_setting
(
name
=
"openbsd"
,
constraint_values
=
[
"@platforms//os:openbsd"
],
)
config_setting
(
config_setting
(
name
=
"msvc_compiler"
,
name
=
"msvc_compiler"
,
flag_values
=
{
flag_values
=
{
...
@@ -110,6 +120,8 @@ cc_library(
...
@@ -110,6 +120,8 @@ cc_library(
linkopts
=
select
({
linkopts
=
select
({
":qnx"
:
[
"-lregex"
],
":qnx"
:
[
"-lregex"
],
":windows"
:
[],
":windows"
:
[],
":freebsd"
:
[
"-lm"
,
"-pthread"
],
":openbsd"
:
[
"-lm"
,
"-pthread"
],
"//conditions:default"
:
[
"-pthread"
],
"//conditions:default"
:
[
"-pthread"
],
}),
}),
deps
=
select
({
deps
=
select
({
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment