Skip to content

Commit d8f9990

Browse files
authored
Fix installation of libgit2 into wrong libdir (libgit2#624)
Upstream libgit2 has migrated to use the GNUInstallDirs module to decide where things will be installed to by default. While it improves consistency with the host system, we're not really after that when building the vendored libgit2 library, and in fact libgit2.{a,pc} may now be installed into a different directory than before as it started to depend on the host platform. Fix this by explicitly specifying that we want the library and pkgconfig file to be installed into a plain "lib/" directory.
1 parent b1cad11 commit d8f9990

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

script/build-libgit2.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@ cmake -DTHREADSAFE=ON \
4141
-DCMAKE_C_FLAGS=-fPIC \
4242
-DCMAKE_BUILD_TYPE="RelWithDebInfo" \
4343
-DCMAKE_INSTALL_PREFIX="${BUILD_PATH}/install" \
44+
-DCMAKE_INSTALL_LIBDIR="lib" \
4445
"${VENDORED_PATH}" &&
4546

4647
exec cmake --build . --target install

0 commit comments

Comments
 (0)