]> git.ipfire.org Git - pakfire.git/commitdiff
Update macros.
authorMichael Tremer <michael.tremer@ipfire.org>
Thu, 22 Sep 2011 19:14:57 +0000 (21:14 +0200)
committerMichael Tremer <michael.tremer@ipfire.org>
Thu, 22 Sep 2011 19:14:57 +0000 (21:14 +0200)
macros/cflags.macro [new file with mode: 0644]
macros/constants.macro
macros/quality-agent.macro [new file with mode: 0644]

diff --git a/macros/cflags.macro b/macros/cflags.macro
new file mode 100644 (file)
index 0000000..08908e8
--- /dev/null
@@ -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}
index f354cb629b0f6539ffa7c00097afa8650dbc57d9..d7af330067ac1b1cdb023acf174b6c8799d14842 100644 (file)
@@ -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 (file)
index 0000000..066169e
--- /dev/null
@@ -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