summaryrefslogtreecommitdiff
path: root/zephyr/cmake/compiler/gcc/compiler_flags.cmake
diff options
context:
space:
mode:
Diffstat (limited to 'zephyr/cmake/compiler/gcc/compiler_flags.cmake')
-rw-r--r--zephyr/cmake/compiler/gcc/compiler_flags.cmake5
1 files changed, 4 insertions, 1 deletions
diff --git a/zephyr/cmake/compiler/gcc/compiler_flags.cmake b/zephyr/cmake/compiler/gcc/compiler_flags.cmake
index 125f909c87..adc111835e 100644
--- a/zephyr/cmake/compiler/gcc/compiler_flags.cmake
+++ b/zephyr/cmake/compiler/gcc/compiler_flags.cmake
@@ -1,7 +1,10 @@
-# Copyright 2020 The Chromium OS Authors. All rights reserved.
+# Copyright 2020 The ChromiumOS Authors
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
# Zephyr cmake system looks into ${TOOLCHAIN_ROOT}, but we just send
# this out to the copy in ${ZEPHYR_BASE}.
include("${ZEPHYR_BASE}/cmake/compiler/gcc/compiler_flags.cmake")
+
+# Disable position independent code.
+add_compile_options(-fno-PIC)