AC_SUBST(DLOG_CFLAGS)
AC_SUBST(DLOG_LIBS)
+# Check if dlog support should be enabled.
+AC_ARG_ENABLE(relro,
+ [ --enable-relro enable RELRO option],
+ [enable_relro=$enableval], [enable_relro=no])
+if test "$enable_relro" = "yes"; then
+ AC_DEFINE([RELRO_ENABLED], 1, [Enable RELRO option ?])
+fi
+AM_CONDITIONAL(RELRO_ENABLED, [test "$enable_relro" = "yes"])
+AC_SUBST(RELRO_ENABLED)
+
# Set up murphy CFLAGS and LIBS.
MURPHY_CFLAGS=""
MURPHY_LIBS=""
echo "Resource management support: $with_resources"
echo "Websockets support: $enable_websockets"
echo "systemd support: $enable_systemd"
+echo "RELRO option: $enable_relro"
echo "Plugins:"
echo " - linked-in:"
for plugin in ${INTERNAL_PLUGINS:-none}; do
Summary: Resource policy framework
Name: murphy
Version: 0.0.74
-Release: 8
+Release: 9
License: BSD-3-Clause
Group: System/Service
URL: http://01.org/murphy/
CONFIG_OPTIONS="$CONFIG_OPTIONS --disable-smack"
#%endif
+%if "%{?tizen_profile_name}" == "wearable"
+echo "tizen profile wearable"
+CONFIG_OPTIONS="$CONFIG_OPTIONS --enable-relro"
+%endif
+
./bootstrap
%configure $CONFIG_OPTIONS --with-dynamic-plugins=$DYNAMIC_PLUGINS
%__make clean
murphyd_LDFLAGS = -rdynamic
+if RELRO_ENABLED
+murphyd_LDFLAGS += -Wl,-z,relro
+endif
+
install-data-hook::
rm -f $(DESTDIR)/$(sysconfdir)/murphy/murphy.cfg
echo "load-plugin lua config=\"$(sysconfdir)/murphy/main.cfg\"" \