RHEL8.4: make mcinspect and eclair fPIE for RPM, clear build_ldflags in mckernel.spec

Change-Id: I06f09628629c2afb0d36ad6ab2e2ed2cc716a980
This commit is contained in:
Balazs Gerofi
2021-06-14 06:04:30 -04:00
parent 69187ea0fd
commit a1b9721772
2 changed files with 6 additions and 0 deletions

View File

@@ -31,9 +31,13 @@ else()
target_link_libraries(mcinspect ${LIBDWARF})
endif()
target_link_libraries(mcinspect ${LIBBFD})
set_property(TARGET mcinspect PROPERTY POSITION_INDEPENDENT_CODE ON)
set_property(TARGET mcinspect PROPERTY LINK_FLAGS "-fPIE -pie")
add_executable(eclair eclair.c arch/${ARCH}/arch-eclair.c)
target_link_libraries(eclair ${LIBBFD})
set_property(TARGET eclair PROPERTY POSITION_INDEPENDENT_CODE ON)
set_property(TARGET eclair PROPERTY LINK_FLAGS "-fPIE -pie")
add_library(sched_yield SHARED libsched_yield.c)
target_link_libraries(sched_yield dl)