2015-08-20 15:13:28 +03:00
|
|
|
execute_process(COMMAND ${readelf} -d ${mod} OUTPUT_FILE ${mod}.readelf.txt)
|
|
|
|
file(STRINGS ${mod}.readelf.txt soname REGEX "\\(SONAME\\)")
|
|
|
|
if(soname)
|
|
|
|
message(FATAL_ERROR "${mod} has soname but should not:\n ${soname}")
|
2012-04-23 17:53:29 +04:00
|
|
|
else()
|
2015-08-20 15:13:28 +03:00
|
|
|
message(STATUS "${mod} has no soname as expected")
|
2012-04-23 17:53:29 +04:00
|
|
|
endif()
|