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
dc7a0779
Commit
dc7a0779
authored
Oct 13, 2021
by
Andy Soffer
Browse files
Merge pull request #3602 from yesudeep:try-fix-linker-errors-on-freebsd
PiperOrigin-RevId: 402414489
parents
b2dda9ed
9e3fb4ea
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 @
dc7a0779
...
@@ -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