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:
Tobias Frost 2022-06-10 09:44:16 +02:00
parent c38415317c
commit 9fb6465fb8

View File

@ -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})