forked from f0rmiga/gcc-toolchain
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathBUILD
More file actions
57 lines (55 loc) · 1.41 KB
/
Copy pathBUILD
File metadata and controls
57 lines (55 loc) · 1.41 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
load("@rules_foreign_cc//foreign_cc:defs.bzl", "configure_make")
filegroup(
name = "all_srcs",
srcs = glob(["**"]),
)
# TODO(sp): Use -fdata-sections -ffunction-sections + -Wl,--gc-sections (plus
# perhaps -Wl,--print-gc-sections)
configure_make(
name = "rrdtool",
args = ["-j6"],
configure_options = [
"--disable-docs",
"--disable-examples",
"--disable-libbdi",
"--disable-libwrap",
"--disable-lua",
"--disable-perl",
"--disable-python",
"--disable-ruby",
"--disable-rrdcaches",
"--disable-rrdcgi",
"--disable-tcl",
"--with-systemdsystemunitdir=no",
# https://github.com/bazelbuild/rules_foreign_cc/issues/239
"CFLAGS='-Dredacted=\"redacted\"'",
],
copts = [
"-g",
"-O2",
"-D_GNU_SOURCE",
"-fno-strict-aliasing",
"-std=gnu99",
"-fPIC",
"-Wno-format-truncation",
"-Wno-implicit-fallthrough",
"-Wno-stringop-truncation",
],
lib_source = "@rrdtool//:srcs",
lib_name = "rrdtool",
out_binaries = [
"rrdcached",
"rrdcreate",
"rrdinfo",
"rrdtool",
"rrdupdate",
],
out_data_dirs = ["share"],
out_shared_libs = [
"librrd.so",
"librrd.so.8",
"librrd.so.8.2.1",
],
out_static_libs = ["librrd.a"],
visibility = ["//visibility:public"],
)