|
From: <mil...@us...> - 2008-01-09 14:25:41
|
Revision: 2726
http://selinux.svn.sourceforge.net/selinux/?rev=2726&view=rev
Author: millertc
Date: 2008-01-09 06:25:39 -0800 (Wed, 09 Jan 2008)
Log Message:
-----------
Filter out -Werror in CFLAGS when building swig wrappers as
we have no control over the code generated by swig.
Signed-off-by: Todd C. Miller <tm...@tr...>
Modified Paths:
--------------
trunk/libselinux/src/Makefile
trunk/libsemanage/src/Makefile
Modified: trunk/libselinux/src/Makefile
===================================================================
--- trunk/libselinux/src/Makefile 2008-01-08 16:18:23 UTC (rev 2725)
+++ trunk/libselinux/src/Makefile 2008-01-09 14:25:39 UTC (rev 2726)
@@ -54,7 +54,7 @@
$(RANLIB) $@
$(SWIGLOBJ): $(SWIGCOUT)
- $(CC) $(CFLAGS) -I$(PYINC) -fPIC -DSHARED -c -o $@ $<
+ $(CC) $(filter-out -Werror,$(CFLAGS)) -I$(PYINC) -fPIC -DSHARED -c -o $@ $<
$(SWIGSO): $(SWIGLOBJ)
$(CC) $(CFLAGS) $(LDFLAGS) -shared -o $@ $< -L. -lselinux -L$(LIBDIR) -Wl,-soname,$@
Modified: trunk/libsemanage/src/Makefile
===================================================================
--- trunk/libsemanage/src/Makefile 2008-01-08 16:18:23 UTC (rev 2725)
+++ trunk/libsemanage/src/Makefile 2008-01-09 14:25:39 UTC (rev 2726)
@@ -44,7 +44,7 @@
pywrap: all $(SWIGLOBJ) $(SWIGSO)
$(SWIGLOBJ): $(SWIGCOUT)
- $(CC) $(CFLAGS) -I$(PYINC) -fPIC -DSHARED -c -o $@ $<
+ $(CC) $(filter-out -Werror, $(CFLAGS)) -I$(PYINC) -fPIC -DSHARED -c -o $@ $<
$(SWIGSO): $(SWIGLOBJ)
$(CC) $(CFLAGS) $(LDFLAGS) -shared -o $@ $< -L. -lsemanage -l$(PYLIBVER) -L$(LIBDIR) -Wl,-soname,$@,-z,defs
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|