From 05b43db45d23a32e51bf064946dae868e98396bd Mon Sep 17 00:00:00 2001 From: Jason Zaman Date: Wed, 15 Aug 2018 15:20:56 +0800 Subject: systemlibs: allow building with PREFIX other than /usr Some use-cases want to build packages in a different path than /usr. For example to have a set of packages independent from other system binaries. This change allows building with bazel build --define=PREFIX=/some/other/path to search that path instead. The default of /usr is set in bazelrc so that building with no options will work as before and setting PREFIX on the commandline or later in the bazelrc will override that setting if desired. PREFIX is not used by the bundled build so should not affect that at all. This also adds a few other standard Make variables that can be overridden independently if needed. Signed-off-by: Jason Zaman --- third_party/systemlibs/jsoncpp.BUILD | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'third_party') diff --git a/third_party/systemlibs/jsoncpp.BUILD b/third_party/systemlibs/jsoncpp.BUILD index cf91917cfb..526fd0c418 100644 --- a/third_party/systemlibs/jsoncpp.BUILD +++ b/third_party/systemlibs/jsoncpp.BUILD @@ -23,7 +23,7 @@ genrule( cmd = """ for i in $(OUTS); do i=$${i##*/} - ln -vsf /usr/include/jsoncpp/json/$$i $(@D)/include/json/$$i + ln -sf $(INCLUDEDIR)/jsoncpp/json/$$i $(@D)/include/json/$$i done """, ) -- cgit v1.2.3