From 2413ad2b59826c8bcffdb4241d8f3c37fe1f6eb6 Mon Sep 17 00:00:00 2001 From: iphydf Date: Sun, 5 Aug 2018 19:17:57 +0000 Subject: [PATCH] Use bazel import libs instead of global `-l` flags. Import libs currently also point to the global system installed versions, but at least we have the freedom to import them properly later. --- BUILD.bazel | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/BUILD.bazel b/BUILD.bazel index 1747d27..643531f 100644 --- a/BUILD.bazel +++ b/BUILD.bazel @@ -10,17 +10,15 @@ cc_binary( "-DPYTHON", "-DVIDEO", ], - linkopts = [ - "-lncurses", - "-lopenal", - "-lX11", - ], deps = [ "//c-toxcore", "@curl", "@libconfig", "@libqrencode", "@libvpx", + "@ncurses", + "@openal", "@python3//:python", + "@x11//:X11", ], )