bc2c12a
diff -up libselinux/include/selinux/selinux.h.rpm_execcon libselinux/include/selinux/selinux.h
bc2c12a
--- libselinux/include/selinux/selinux.h.rpm_execcon	2015-12-02 21:18:25.000000000 +0100
bc2c12a
+++ libselinux/include/selinux/selinux.h	2015-12-10 17:50:09.861577967 +0100
bc2c12a
@@ -601,10 +601,12 @@ void fini_selinuxmnt(void);
bc2c12a
  * program, falling back to a new context with the specified type. */
bc2c12a
 extern int setexecfilecon(const char *filename, const char *fallback_type);
bc2c12a
 
bc2c12a
+#ifndef DISABLE_RPM
bc2c12a
 /* Execute a helper for rpm in an appropriate security context. */
bc2c12a
 extern int rpm_execcon(unsigned int verified,
bc2c12a
 		       const char *filename,
bc2c12a
 		       char *const argv[], char *const envp[]);
bc2c12a
+#endif
bc2c12a
 
bc2c12a
 /* Returns whether a file context is customizable, and should not 
bc2c12a
    be relabeled . */
bc2c12a
diff -up libselinux/src/Makefile.rpm_execcon libselinux/src/Makefile
bc2c12a
--- libselinux/src/Makefile.rpm_execcon	2015-12-02 21:18:25.000000000 +0100
bc2c12a
+++ libselinux/src/Makefile	2015-12-10 17:51:26.158784386 +0100
bc2c12a
@@ -85,9 +85,9 @@ ifneq (,$(filter i386,$(ARCH)))
bc2c12a
 TLSFLAGS += -mno-tls-direct-seg-refs
bc2c12a
 endif
bc2c12a
 
bc2c12a
-SWIG = swig -Wall -python -o $(SWIGCOUT) -outdir ./
bc2c12a
+SWIG = swig -Wall -python -o $(SWIGCOUT) -outdir ./ $(EMFLAGS)
bc2c12a
 
bc2c12a
-SWIGRUBY = swig -Wall -ruby -o $(SWIGRUBYCOUT) -outdir ./
bc2c12a
+SWIGRUBY = swig -Wall -ruby -o $(SWIGRUBYCOUT) -outdir ./ $(EMFLAGS)
bc2c12a
 
bc2c12a
 all: $(LIBA) $(LIBSO) $(LIBPC)
bc2c12a