diff options
author | Tristan Van Berkom <tristan.vanberkom@codethink.co.uk> | 2015-10-29 20:15:56 +0900 |
---|---|---|
committer | Tristan Van Berkom <tristan.vanberkom@codethink.co.uk> | 2015-10-29 20:42:49 +0900 |
commit | 6a964201cdbf76ac000113d304178620dd568c4b (patch) | |
tree | 5a9fe59bb8bd4ac5f2b6aad54f7d5d9d1fb4df76 | |
parent | 41fdcc222dd01261eac317fd4b9f36009cd20259 (diff) | |
download | definitions-6a964201cdbf76ac000113d304178620dd568c4b.tar.gz |
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
-rw-r--r-- | strata/core/e2fsprogs.morph | 5 |
1 files changed, 5 insertions, 0 deletions
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 |