diff options
Diffstat (limited to 'dev-libs/avro-c/files/avro-c-1.9.1-fix-libdir.patch')
-rw-r--r-- | dev-libs/avro-c/files/avro-c-1.9.1-fix-libdir.patch | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/dev-libs/avro-c/files/avro-c-1.9.1-fix-libdir.patch b/dev-libs/avro-c/files/avro-c-1.9.1-fix-libdir.patch new file mode 100644 index 000000000000..84843abaa5a3 --- /dev/null +++ b/dev-libs/avro-c/files/avro-c-1.9.1-fix-libdir.patch @@ -0,0 +1,32 @@ +diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt +index 6f56597..c22e71a 100644 +--- a/src/CMakeLists.txt ++++ b/src/CMakeLists.txt +@@ -109,14 +109,14 @@ install(DIRECTORY + if (WIN32) + install(TARGETS avro-static + RUNTIME DESTINATION bin +- LIBRARY DESTINATION lib +- ARCHIVE DESTINATION lib ++ LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR} ++ ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR} + ) + else(WIN32) + install(TARGETS avro-static avro-shared + RUNTIME DESTINATION bin +- LIBRARY DESTINATION lib +- ARCHIVE DESTINATION lib ++ LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR} ++ ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR} + ) + endif(WIN32) + +@@ -126,7 +126,7 @@ set(prefix ${CMAKE_INSTALL_PREFIX}) + set(VERSION ${AVRO_VERSION}) + configure_file(avro-c.pc.in avro-c.pc) + install(FILES ${CMAKE_CURRENT_BINARY_DIR}/avro-c.pc +- DESTINATION lib/pkgconfig) ++ DESTINATION ${CMAKE_INSTALL_LIBDIR}/pkgconfig) + + add_executable(avrocat avrocat.c) + target_link_libraries(avrocat avro-static) |