[oe-commits] [meta-openembedded] 07/07: flatbuffers: add PIC compiler flag required for aarch64

git at git.openembedded.org git at git.openembedded.org
Fri Dec 27 03:58:00 UTC 2019


This is an automated email from the git hooks/post-receive script.

khem pushed a commit to branch master-next
in repository meta-openembedded.

commit c04b5fa69a910497939cf685e3ec7bcd7506d2b7
Author: Andrey Zhizhikin <andrey.z at gmail.com>
AuthorDate: Thu Dec 26 21:13:00 2019 +0000

    flatbuffers: add PIC compiler flag required for aarch64
    
    Add PIC flag to CXXFLAGS in order to solve the issue with linking
    against the library for aarch64.
    
    Without PIC enabled, linking against this library fails with
    following messages:
    
    relocation R_AARCH64_ADR_PREL_PG_HI21 against symbol `[snap]'
    which may bind externally can not be used when making a
    shared object; recompile with -fPIC
    
    Signed-off-by: Andrey Zhizhikin <andrey.z at gmail.com>
    Signed-off-by: Khem Raj <raj.khem at gmail.com>
---
 meta-oe/recipes-devtools/flatbuffers/flatbuffers_1.11.0.bb | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/meta-oe/recipes-devtools/flatbuffers/flatbuffers_1.11.0.bb b/meta-oe/recipes-devtools/flatbuffers/flatbuffers_1.11.0.bb
index bd6dcef..529441d 100644
--- a/meta-oe/recipes-devtools/flatbuffers/flatbuffers_1.11.0.bb
+++ b/meta-oe/recipes-devtools/flatbuffers/flatbuffers_1.11.0.bb
@@ -17,8 +17,8 @@ SRC_URI = "git://github.com/google/flatbuffers.git \
           "
 
 # Make sure C++11 is used, required for example for GCC 4.9
-CXXFLAGS += "-std=c++11"
-BUILD_CXXFLAGS += "-std=c++11"
+CXXFLAGS += "-std=c++11 -fPIC"
+BUILD_CXXFLAGS += "-std=c++11 -fPIC"
 
 # BUILD_TYPE=Release is required, otherwise flatc is not installed
 EXTRA_OECMAKE += "\

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the Openembedded-commits mailing list