diff -ur policycoreutils-2.1.14.orig/Makefile policycoreutils-2.1.14/Makefile --- policycoreutils-2.1.14.orig/Makefile 2013-06-23 20:03:48.646146982 +0200 +++ policycoreutils-2.1.14/Makefile 2013-06-23 20:04:00.024147245 +0200 @@ -1,4 +1,4 @@ -SUBDIRS = sepolicy setfiles semanage load_policy newrole run_init secon audit2allow audit2why sestatus semodule_package semodule semodule_link semodule_expand semodule_deps sepolgen-ifgen setsebool scripts po man gui +SUBDIRS = sepolicy setfiles semanage load_policy newrole run_init secon audit2allow audit2why sestatus semodule_package semodule semodule_link semodule_expand semodule_deps sepolgen-ifgen setsebool scripts po man gui mcstrans INOTIFYH ?= n SESANDBOX ?= n diff -ur policycoreutils-2.1.14.orig/mcstrans/src/Makefile policycoreutils-2.1.14/mcstrans/src/Makefile --- policycoreutils-2.1.14.orig/mcstrans/src/Makefile 2013-06-23 20:03:48.660146983 +0200 +++ policycoreutils-2.1.14/mcstrans/src/Makefile 2013-06-23 20:04:46.068148309 +0200 @@ -1,22 +1,9 @@ ARCH = $(shell uname -i) -ifeq "$(ARCH)" "x86_64" - # In case of 64 bit system, use these lines - LIBDIR=/usr/lib64 -else -ifeq "$(ARCH)" "i686" - # In case of 32 bit system, use these lines - LIBDIR=/usr/lib -else -ifeq "$(ARCH)" "i386" - # In case of 32 bit system, use these lines - LIBDIR=/usr/lib -endif -endif -endif # Installation directories. PREFIX ?= $(DESTDIR)/usr SBINDIR ?= $(DESTDIR)/sbin INITDIR ?= $(DESTDIR)/etc/rc.d/init.d +LIBDIR ?= $(PREFIX)/lib PROG_SRC=mcstrans.c mcscolor.c mcstransd.c mls_level.c PROG_OBJS= $(patsubst %.c,%.o,$(PROG_SRC)) diff -ur policycoreutils-2.1.14.orig/mcstrans/utils/Makefile policycoreutils-2.1.14/mcstrans/utils/Makefile --- policycoreutils-2.1.14.orig/mcstrans/utils/Makefile 2013-06-23 20:03:48.659146983 +0200 +++ policycoreutils-2.1.14/mcstrans/utils/Makefile 2013-06-23 20:04:57.637148576 +0200 @@ -3,21 +3,7 @@ BINDIR ?= $(PREFIX)/sbin ARCH = $(shell uname -i) -ifeq "$(ARCH)" "x86_64" - # In case of 64 bit system, use these lines - LIBDIR=/usr/lib64 -else -ifeq "$(ARCH)" "i686" - # In case of 32 bit system, use these lines - LIBDIR=/usr/lib -else -ifeq "$(ARCH)" "i386" - # In case of 32 bit system, use these lines - LIBDIR=/usr/lib -endif -endif -endif - +LIBDIR ?= $(PREFIX)/lib CFLAGS ?= -Wall override CFLAGS += -I../src -D_GNU_SOURCE