From 6a964201cdbf76ac000113d304178620dd568c4b Mon Sep 17 00:00:00 2001 From: Tristan Van Berkom Date: Thu, 29 Oct 2015 20:15:56 +0900 Subject: e2fsprogs: Compile with explicit -fPIC This causes the objects going into the static library libcom_err.a to be compiled with -fPIC, making it possible to include the archive into a shared library; as samba does. Change-Id: I556d594b2cb25c8e7d4f9621fd3089608a213e1d --- strata/core/e2fsprogs.morph | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/strata/core/e2fsprogs.morph b/strata/core/e2fsprogs.morph index 55ac486c..6f32ad38 100644 --- a/strata/core/e2fsprogs.morph +++ b/strata/core/e2fsprogs.morph @@ -9,6 +9,11 @@ configure-commands: - | ./configure --prefix="$PREFIX" --sysconfdir=/etc \ --disable-libuuid --disable-uuidd --disable-libblkid +build-commands: +# Without this, the static archive libcom_err is generated without +# position independant code; later when samba tries to create a shared +# library linking to this archive, we get errors. +- make CFLAGS="-g -O2 -DHAVE_CONFIG_H -fPIC" install-commands: # e2fsprogs also includes tools that are provided by util-linux, so we # need to selectively exclude them. Removing them directly from DESTDIR -- cgit v1.2.1