parent
7575e68947
commit
3a923e3382
|
@ -15,6 +15,18 @@ TERMUX_PKG_REPLACES="google-glog-dev"
|
|||
TERMUX_PKG_EXTRA_CONFIGURE_ARGS="
|
||||
-DBUILD_SHARED_LIBS=ON"
|
||||
|
||||
termux_step_post_get_source() {
|
||||
# Do not forget to bump revision of reverse dependencies and rebuild them
|
||||
# after SOVERSION is changed.
|
||||
local _SOVERSION=1
|
||||
|
||||
local v=$(sed -En 's/^\s*set_target_properties\s*\(glog\s+.*\s+SOVERSION\s+([0-9]+).*/\1/p' \
|
||||
CMakeLists.txt)
|
||||
if [ "${v}" != "${_SOVERSION}" ]; then
|
||||
termux_error_exit "SOVERSION guard check failed."
|
||||
fi
|
||||
}
|
||||
|
||||
termux_step_pre_configure() {
|
||||
LDFLAGS+=" -llog"
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue