adds malloc to libwrap CMake
This commit is contained in:
parent
242c506e41
commit
0464b3b589
@ -25,11 +25,11 @@ set(LIB_SOURCES
|
|||||||
stdlib/malloc.c
|
stdlib/malloc.c
|
||||||
# Miscellaneous
|
# Miscellaneous
|
||||||
misc/write_hex.c
|
misc/write_hex.c
|
||||||
)
|
)
|
||||||
set(WRAP_ARGS "")
|
set(WRAP_ARGS "")
|
||||||
foreach(FILE ${LIB_SOURCES})
|
foreach(FILE ${LIB_SOURCES})
|
||||||
get_filename_component(DIR ${FILE} DIRECTORY)
|
get_filename_component(DIR ${FILE} DIRECTORY)
|
||||||
if(DIR STREQUAL "sys")
|
if(NOT DIR STREQUAL "misc")
|
||||||
get_filename_component(BASE_NAME ${FILE} NAME_WE)
|
get_filename_component(BASE_NAME ${FILE} NAME_WE)
|
||||||
list(APPEND WRAP_ARGS "LINKER:--wrap=${BASE_NAME}")
|
list(APPEND WRAP_ARGS "LINKER:--wrap=${BASE_NAME}")
|
||||||
endif()
|
endif()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user