diff options
author | Gaël PORTAY <gael.portay@collabora.com> | 2019-01-02 15:56:29 -0500 |
---|---|---|
committer | Peter Korsgaard <peter@korsgaard.com> | 2019-03-25 11:40:15 +0100 |
commit | a3cf782748dc2b2a23ba23d1003d562efd8e6c66 (patch) | |
tree | 181d96862dddf2b03f64a547a7f1ee83b148e6e4 /utils/size-stats-compare | |
parent | 2a4afa77f25d6ce5a4ebdc80d5531ea32b5b5a6b (diff) | |
download | buildroot-a3cf782748dc2b2a23ba23d1003d562efd8e6c66.tar.gz buildroot-a3cf782748dc2b2a23ba23d1003d562efd8e6c66.zip |
leveldb: generate pic for static libraries
The project's static libraries are not compiled with the -fPIC compiler
flag. This prevents dynamic libraries to link against those libraries.
This commit adds a patch that sets the -fPIC compiler flag to the list of
CFLAGS/CXXFLAGS.
The project now generates position independant code for all of its
outputs (i.e. not limited anymore to its shared libraries).
Fixes:
/home/gportay/src/buildroot/output/host/opt/ext-toolchain/bin/../lib/gcc/x86_64-amd-linux-gnu/6.2.0/../../../../x86_64-amd-linux-gnu/bin/ld: /home/gportay/src/buildroot/output/host/x86_64-buildroot-linux-gnu/sysroot/usr/lib/libmemenv.a(memenv.o): relocation R_X86_64_32S against `.rodata' can not be used when making a shared object; recompile with -fPIC
/home/gportay/src/buildroot/output/host/x86_64-buildroot-linux-gnu/sysroot/usr/lib/libmemenv.a: error adding symbols: Bad value
collect2: error: ld returned 1 exit status
Signed-off-by: Gaël PORTAY <gael.portay@collabora.com>
[Arnout: renumber patch]
Signed-off-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
(cherry picked from commit 088f261dbb89bb48a918a3153f293b86708c8a58)
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
Diffstat (limited to 'utils/size-stats-compare')
0 files changed, 0 insertions, 0 deletions