From fa91386715aff546a2ac89d0c64e16dce562c84e Mon Sep 17 00:00:00 2001 From: Michael Tremer Date: Thu, 22 Sep 2011 21:14:57 +0200 Subject: [PATCH] Update macros. --- macros/cflags.macro | 9 +++++++++ macros/constants.macro | 5 ++--- macros/quality-agent.macro | 17 +++++++++++++++++ 3 files changed, 28 insertions(+), 3 deletions(-) create mode 100644 macros/cflags.macro create mode 100644 macros/quality-agent.macro diff --git a/macros/cflags.macro b/macros/cflags.macro new file mode 100644 index 000000000..08908e85a --- /dev/null +++ b/macros/cflags.macro @@ -0,0 +1,9 @@ + +# Export CFLAGS + CXXFLAGS +GLOBAL_CFLAGS = -O2 -g -pipe -Wall -fexceptions --param=ssp-buffer-size=4 + +CFLAGS_i686 = -m32 -march=i686 -mtune=atom -fasynchronous-unwind-tables +CFLAGS_x86_64 = -m64 -mtune=generic + +export CFLAGS = %{GLOBAL_CFLAGS} %{CFLAGS_%{DISTRO_ARCH}} +export CXXFLAGS = %{CFLAGS} diff --git a/macros/constants.macro b/macros/constants.macro index f354cb629..d7af33006 100644 --- a/macros/constants.macro +++ b/macros/constants.macro @@ -19,14 +19,13 @@ configure_options = \ --prefix=/usr patches = -sources = %{tarball} -tarball = %{thisapp}.tar.gz +sources = %{thisapp}.tar.gz # Macro definitions # Macro to extract tarballs. # Guesses the compression type automatically. -MACRO_EXTRACT = tar xvaf +MACRO_EXTRACT = tar xaf # Macro to define and start the quality agent. # Long term goal is to improve the commited code. diff --git a/macros/quality-agent.macro b/macros/quality-agent.macro new file mode 100644 index 000000000..066169ed4 --- /dev/null +++ b/macros/quality-agent.macro @@ -0,0 +1,17 @@ + +############################################################################### +# +# Quality agent +# +############################################################################### +# Export variables for the quality agent + +export QUALITY_AGENT_PERMIT_NOT_FULL_RELRO +export QUALITY_AGENT_RPATH_ALLOW_ORIGIN +export QUALITY_AGENT_WHITELIST_EXECSTACK +export QUALITY_AGENT_WHITELIST_NX +export QUALITY_AGENT_WHITELIST_RPATH +export QUALITY_AGENT_WHITELIST_SONAME +export QUALITY_AGENT_WHITELIST_SYMLINK +export QUALITY_AGENT_NO_DIRECTORY_CHECK +export QUALITY_AGENT_NO_DIRECTORY_PRUNE -- 2.39.5