mirror of
https://github.com/sstefani/mtrace.git
synced 2025-12-06 16:56:41 +08:00
Define "PACKAGE" to have bfd from binutils 2.31 happy.
bfd 2.31 checks for this define and #errors out if it is not there.
This commit is contained in:
parent
c38415317c
commit
9fb6465fb8
@ -142,6 +142,7 @@ endif()
|
|||||||
add_executable(${MT} ${C_SRCS})
|
add_executable(${MT} ${C_SRCS})
|
||||||
target_link_libraries(${MT} ${LIB_ELF_LIBRARIES} ${LIB_PTHREAD} ${LIB_DL} ${LIB_RT} ${LIB_READLINE})
|
target_link_libraries(${MT} ${LIB_ELF_LIBRARIES} ${LIB_PTHREAD} ${LIB_DL} ${LIB_RT} ${LIB_READLINE})
|
||||||
if(LIB_BFD)
|
if(LIB_BFD)
|
||||||
|
target_compile_options(${MT} PRIVATE -DPACKAGE)
|
||||||
target_link_libraries(${MT} ${LIB_BFD})
|
target_link_libraries(${MT} ${LIB_BFD})
|
||||||
endif()
|
endif()
|
||||||
target_compile_options(${MT} PUBLIC ${LIB_ELF_CFLAGS_OTHER})
|
target_compile_options(${MT} PUBLIC ${LIB_ELF_CFLAGS_OTHER})
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user