Skip to content

Commit

Permalink
shared library: Link against zlib
Browse files Browse the repository at this point in the history
Library is using crc32(), therefore needs to link against zlib.

Signed-off-by: Reto Schneider <[email protected]>
Reviewed-by: Stefano Babic <[email protected]>
  • Loading branch information
rettichschnidi authored and sbabic committed Apr 28, 2021
1 parent e663439 commit f4ab25d
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,9 @@ ADD_LIBRARY(ubootenv_static STATIC ${libubootenv_SOURCES} ${include_HEADERS})
SET_TARGET_PROPERTIES(ubootenv_static PROPERTIES OUTPUT_NAME ubootenv)
add_executable(fw_printenv fw_printenv.c)
add_executable(fw_setenv fw_setenv.c)
target_link_libraries(fw_printenv ubootenv z)
target_link_libraries(fw_setenv ubootenv z)
target_link_libraries(ubootenv z)
target_link_libraries(fw_printenv ubootenv)
target_link_libraries(fw_setenv ubootenv)

install (TARGETS ubootenv ubootenv_static DESTINATION ${CMAKE_INSTALL_LIBDIR})
install (FILES libuboot.h DESTINATION ${CMAKE_INSTALL_INCLUDEDIR})
Expand Down

0 comments on commit f4ab25d

Please sign in to comment.