summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--recipe.d/0104-libsemanage8
1 files changed, 6 insertions, 2 deletions
diff --git a/recipe.d/0104-libsemanage b/recipe.d/0104-libsemanage
index c774e97..2da9471 100644
--- a/recipe.d/0104-libsemanage
+++ b/recipe.d/0104-libsemanage
@@ -6,5 +6,9 @@
mcd $BUILDDIR/libsemanage
rsync -av $SRC/libsemanage-*/ ./
-make $J
-make $J install
+# TARGET is exported by local.conf and passed on make cmdline in stage2
+# script. This overrides the definition in the libsemanage Makefile, so
+# we need to override again on the make cmdline here.
+
+make TARGET=libsemanage.so CC=gcc $J
+make TARGET=libsemanage.so CC=gcc $J LIBDIR=/usr/lib${SUFFIX} SHLIBDIR=/lib${SUFFIX} install