Skip to content

Commit

Permalink
Fix auxv dump utility
Browse files Browse the repository at this point in the history
  • Loading branch information
Marat Dukhan committed Jul 14, 2018
1 parent 91e2aad commit 33011de
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -774,7 +774,7 @@ IF(CPUINFO_SUPPORTED_PLATFORM AND CPUINFO_BUILD_TOOLS)
ADD_EXECUTABLE(auxv-dump tools/auxv-dump.c)
CPUINFO_TARGET_ENABLE_C99(auxv-dump)
CPUINFO_TARGET_RUNTIME_LIBRARY(auxv-dump)
TARGET_LINK_LIBRARIES(auxv-dump PRIVATE ${CMAKE_DL_LIBS})
TARGET_LINK_LIBRARIES(auxv-dump PRIVATE ${CMAKE_DL_LIBS} cpuinfo)

ADD_EXECUTABLE(cpuinfo-dump tools/cpuinfo-dump.c)
CPUINFO_TARGET_ENABLE_C99(cpuinfo-dump)
Expand Down
2 changes: 2 additions & 0 deletions tools/auxv-dump.c
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@
#include <errno.h>
#include <dlfcn.h>

#include <cpuinfo.h>


typedef unsigned long (*getauxval_function_t)(unsigned long);

Expand Down

0 comments on commit 33011de

Please sign in to comment.