Skip to content

Commit 1ba84e0

Browse files
tturnermsfjarvis
authored andcommitted
tools: fixup the CMake custom command for elf-cleaner to correctly find sources
Signed-off-by: Tom Turner <[email protected]> Signed-off-by: Harsh Shandilya <[email protected]>
1 parent a5b4b9c commit 1ba84e0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tunnel/tools/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ add_custom_target(libwg-go.so WORKING_DIRECTORY "${CMAKE_CURRENT_SOURCE_DIR}/lib
3131
)
3232

3333
# Strip unwanted ELF sections to prevent DT_FLAGS_1 warnings on old Android versions
34-
file(GLOB ELF_CLEANER_SOURCES elf-cleaner/*.c elf-cleaner/*.cpp)
34+
file(GLOB ELF_CLEANER_SOURCES ${CMAKE_CURRENT_SOURCE_DIR}/elf-cleaner/*.c ${CMAKE_CURRENT_SOURCE_DIR}/elf-cleaner/*.cpp)
3535
add_custom_target(elf-cleaner COMMENT "Building elf-cleaner" VERBATIM COMMAND cc
3636
-O2 -DPACKAGE_NAME="elf-cleaner" -DPACKAGE_VERSION="" -DCOPYRIGHT=""
3737
-o "${CMAKE_CURRENT_BINARY_DIR}/elf-cleaner" ${ELF_CLEANER_SOURCES}

0 commit comments

Comments
 (0)