mirror of
https://github.com/openembedded/meta-openembedded.git
synced 2026-06-14 17:59:59 +00:00
ec2c3d3ef4
The repository contains the Abseil C++ library code. Abseil is an open-source collection of C++ code (compliant to C++11) designed to augment the C++ standard library. https://github.com/abseil/abseil-cpp Signed-off-by: Changyu Li <Changyu.Li@microsoft.com> Signed-off-by: Sinan Kaya <sinan.kaya@microsoft.com> Signed-off-by: Khem Raj <raj.khem@gmail.com>
28 lines
764 B
Diff
28 lines
764 B
Diff
From d7160d647c8f8847f3ea8d7b0eb222936962c1af Mon Sep 17 00:00:00 2001
|
|
From: Sinan Kaya <sinan.kaya@microsoft.com>
|
|
Date: Tue, 11 Feb 2020 11:58:02 -0500
|
|
Subject: [PATCH] Add fPIC option
|
|
|
|
Signed-off-by: Sinan Kaya <sinan.kaya@microsoft.com>
|
|
---
|
|
CMakeLists.txt | 3 +++
|
|
1 file changed, 3 insertions(+)
|
|
|
|
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
|
index 74a3a4c..4f837b3 100644
|
|
--- a/CMakeLists.txt
|
|
+++ b/CMakeLists.txt
|
|
@@ -79,6 +79,9 @@ option(ABSL_USE_GOOGLETEST_HEAD
|
|
|
|
option(ABSL_RUN_TESTS "If ON, Abseil tests will be run." OFF)
|
|
|
|
+# link fails on arm64 and x86-64 without this
|
|
+add_compile_options(-fPIC)
|
|
+
|
|
if(${ABSL_RUN_TESTS})
|
|
# enable CTest. This will set BUILD_TESTING to ON unless otherwise specified
|
|
# on the command line
|
|
--
|
|
2.20.1.windows.1
|
|
|