Skip to content

Commit

Permalink
Add -lpthread
Browse files Browse the repository at this point in the history
  • Loading branch information
lalten committed Dec 19, 2023
1 parent 9aacd91 commit de5dadc
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions third_party/squashfs-tools.BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@ _COPTS = [
"--no-warnings", # We don't care about third-party warnings
]

_LINKOPTS = [
"-lpthread",
]

_DEFINES = [
'COMP_DEFAULT=\\"gzip\\"',
'DATE=\\"redacted\\"',
Expand Down Expand Up @@ -41,6 +45,7 @@ cc_library(
hdrs = ["squashfs_fs.h"],
copts = _COPTS,
defines = _DEFINES,
linkopts = _LINKOPTS,
deps = [
"@bazel_tools//third_party/zlib",
"@zstd",
Expand All @@ -56,6 +61,7 @@ cc_binary(
],
copts = _COPTS,
defines = _DEFINES,
linkopts = _LINKOPTS,
visibility = ["//visibility:public"],
deps = [":common"],
)
Expand All @@ -65,6 +71,7 @@ cc_binary(
srcs = glob(["unsquash*"]),
copts = _COPTS,
defines = _DEFINES,
linkopts = _LINKOPTS,
visibility = ["//visibility:public"],
deps = [":common"],
)

0 comments on commit de5dadc

Please sign in to comment.