public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-commits] path-sandbox r404 - in trunk: . libsandbox libsbutil src
@ 2008-11-11  6:23 Mike Frysinger (vapier)
  0 siblings, 0 replies; only message in thread
From: Mike Frysinger (vapier) @ 2008-11-11  6:23 UTC (permalink / raw
  To: gentoo-commits

Author: vapier
Date: 2008-11-11 06:23:02 +0000 (Tue, 11 Nov 2008)
New Revision: 404

Modified:
   trunk/configure.ac
   trunk/libsandbox/Makefile.am
   trunk/libsbutil/Makefile.am
   trunk/src/Makefile.am
Log:
move build flags to configure rather than Makefile

Modified: trunk/configure.ac
===================================================================
--- trunk/configure.ac	2008-11-11 05:42:04 UTC (rev 403)
+++ trunk/configure.ac	2008-11-11 06:23:02 UTC (rev 404)
@@ -232,6 +232,11 @@
 SANDBOX_DEFINES='-DETCDIR="\"$(sysconfdir)\"" -DLIBSANDBOX_PATH="\"$(libdir)\"" -DSANDBOX_BASHRC_PATH="\"$(pkgdatadir)\""'
 AC_SUBST([SANDBOX_DEFINES])
 
+CPPFLAGS="$CPPFLAGS -D_REENTRANT"
+if test "$GCC" = yes; then
+	CFLAGS="$CFLAGS -Wall"
+fi
+
 AC_OUTPUT([
 	Makefile
 	scripts/Makefile

Modified: trunk/libsandbox/Makefile.am
===================================================================
--- trunk/libsandbox/Makefile.am	2008-11-11 05:42:04 UTC (rev 403)
+++ trunk/libsandbox/Makefile.am	2008-11-11 06:23:02 UTC (rev 404)
@@ -3,12 +3,12 @@
 lib_LTLIBRARIES = libsandbox.la
 
 AM_CPPFLAGS = \
-	$(SANDBOX_DEFINES)       \
-	-DPIC -fPIC -D_REENTRANT \
-	-I$(top_srcdir) -Wall
+	$(SANDBOX_DEFINES) \
+	-DPIC -fPIC
 
 INCLUDES = \
-	-I$(top_srcdir)/libsbutil         \
+	-I$(top_srcdir) \
+	-I$(top_srcdir)/libsbutil \
 	-I$(top_srcdir)/libsbutil/include
 
 # We need -fexceptions here, else we do not catch exceptions

Modified: trunk/libsbutil/Makefile.am
===================================================================
--- trunk/libsbutil/Makefile.am	2008-11-11 05:42:04 UTC (rev 403)
+++ trunk/libsbutil/Makefile.am	2008-11-11 06:23:02 UTC (rev 404)
@@ -1,11 +1,12 @@
 AUTOMAKE_OPTIONS = foreign
 
 AM_CPPFLAGS = \
-	$(SANDBOX_DEFINES)       \
-	-DPIC -fPIC -D_REENTRANT \
-	-I$(top_srcdir) -Wall
+	$(SANDBOX_DEFINES) \
+	-DPIC -fPIC
 
-INCLUDES = -I$(srcdir)/include
+INCLUDES = \
+	-I$(top_srcdir) \
+	-I$(srcdir)/include
 LOCAL_INCLUDES = $(top_srcdir)/localdecls.h
 
 noinst_LTLIBRARIES = libsbutil.la

Modified: trunk/src/Makefile.am
===================================================================
--- trunk/src/Makefile.am	2008-11-11 05:42:04 UTC (rev 403)
+++ trunk/src/Makefile.am	2008-11-11 06:23:02 UTC (rev 404)
@@ -3,12 +3,12 @@
 bin_PROGRAMS = sandbox
 
 AM_CPPFLAGS = \
-	$(SANDBOX_DEFINES)       \
-	-DPIC -fPIC -D_REENTRANT \
-	-I$(top_srcdir) -Wall
+	$(SANDBOX_DEFINES) \
+	-DPIC -fPIC
 
 INCLUDES = \
-	-I$(top_srcdir)/libsbutil         \
+	-I$(top_srcdir) \
+	-I$(top_srcdir)/libsbutil \
 	-I$(top_srcdir)/libsbutil/include
 
 sandbox_CFLAGS = -DOUTSIDE_LIBSANDBOX




^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2008-11-11  6:23 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-11-11  6:23 [gentoo-commits] path-sandbox r404 - in trunk: . libsandbox libsbutil src Mike Frysinger (vapier)

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox