34 lines · plain
1# This file is licensed under the Apache License v2.0 with LLVM Exceptions.2# See https://llvm.org/LICENSE.txt for license information.3# SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception4 5load("@rules_foreign_cc//foreign_cc:defs.bzl", "configure_make_variant")6 7filegroup(8 name = "sources",9 srcs = glob(["**"]),10)11 12configure_make_variant(13 name = "mpfr",14 configure_options = ["--with-pic"],15 copts = ["-w"],16 lib_name = "libmpfr",17 lib_source = ":sources",18 toolchain = "@rules_foreign_cc//toolchains:preinstalled_autoconf_toolchain",19 visibility = ["//visibility:public"],20 deps = ["@gmp//:gmp_"],21)22 23alias(24 name = "mpfr_external",25 actual = "@mpfr//:mpfr_",26 visibility = ["//visibility:public"],27)28 29cc_library(30 name = "mpfr_system",31 linkopts = ["-lmpfr"],32 visibility = ["//visibility:public"],33)34