Skip to content

Commit 00d313f

Browse files
committed
documentation: multilib build flag is documented
1 parent 2cf4f63 commit 00d313f

File tree

1 file changed

+13
-3
lines changed

1 file changed

+13
-3
lines changed

INSTALL.md

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,14 +39,25 @@ Ideally, you should build Bear in a separate build directory.
3939
make install
4040

4141
You can configure the build process with passing arguments to cmake.
42+
4243
One of the flags you might want to pay attention is the `CMAKE_INSTALL_LIBDIR`
43-
flag, which has to be the directory name for libraries. (The value of this
44+
flag, which has to be the directory name for libraries. The value of this
4445
varies for different distribution: debian derivatives are using
4546
`lib/i386-linux-gnu` and `lib/x86_64-linux-gnu`, while many other distributions
46-
are simple `lib` and `lib64` directories.) Passing the flag looks like this:
47+
are simple `lib` and `lib64` directories. Check out where the system `libc.so`
48+
is. And use that directory name for the `CMAKE_INSTALL_LIBDIR`. (If your system
49+
has it as `/lib/x86_64-linux-gnu/libc.so`, then `lib/x86_64-linux-gnu` is the
50+
value you need to use.) Passing the flag looks like this:
4751

4852
cmake -DCMAKE_INSTALL_LIBDIR=lib/x86_64-linux-gnu ... $BEAR_SOURCE_DIR
4953

54+
To enable multilib support, an extra CMake flag is needed. `ENABLE_MULTILIB`
55+
is defined by this project and will change where Bear looks for files. To use
56+
multilib, you need to make the `CMAKE_INSTALL_LIBDIR` set right. (See the
57+
paragraph above.) Passing the flag looks like this:
58+
59+
cmake -DENABLE_MULTILIB=ON ... $BEAR_SOURCE_DIR
60+
5061
To run test during the build process, you will need to install the
5162
test frameworks and re-configure the build. For unit testing Bear
5263
uses googletest, which will be built from source if not already installed.
@@ -98,4 +109,3 @@ If OpenSSL is installed via Brew, and it's keg-only, run the following (before t
98109
build) for pkg-config to find it as grpc's dependency:
99110

100111
export PKG_CONFIG_PATH=$(brew --prefix)/opt/[email protected]/lib/pkgconfig
101-

0 commit comments

Comments
 (0)