summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDenis Khalikov <d.khalikov@partner.samsung.com>2017-04-07 15:39:44 +0300
committerDenis Khalikov <d.khalikov@partner.samsung.com>2017-04-07 15:39:44 +0300
commita55f5e5fb1160bf94f7daaf19be3fe1125ce0ba1 (patch)
tree66ab954b903e78f9e8e50c117553eb9a3fa92faf
parent2b741dd730288101ecfe68c5f2270554fd0e48f5 (diff)
downloadbinutils-sandbox/denis13/ubsan.tar.gz
binutils-sandbox/denis13/ubsan.tar.bz2
binutils-sandbox/denis13/ubsan.zip
Disable optimization for debug modesandbox/denis13/ubsan
-rw-r--r--packaging/binutils-aarch64.spec4
-rw-r--r--packaging/binutils-armv7l.spec4
-rw-r--r--packaging/binutils.spec4
3 files changed, 6 insertions, 6 deletions
diff --git a/packaging/binutils-aarch64.spec b/packaging/binutils-aarch64.spec
index 56dce8990be..9716507c499 100644
--- a/packaging/binutils-aarch64.spec
+++ b/packaging/binutils-aarch64.spec
@@ -75,8 +75,8 @@ cp %{SOURCE1001} .
%build
RPM_OPT_FLAGS="$RPM_OPT_FLAGS -Wno-error %{?cross:-DIGNORE_BROKEN_PLUGINS}"
-export CFLAGS="${RPM_OPT_FLAGS}"
-export CXXFLAGS="${RPM_OPT_FLAGS}"
+export CFLAGS="${RPM_OPT_FLAGS} -O0"
+export CXXFLAGS="${RPM_OPT_FLAGS} -O0"
mkdir build-dir
cd build-dir
diff --git a/packaging/binutils-armv7l.spec b/packaging/binutils-armv7l.spec
index 4f9420216a5..42323fd7da4 100644
--- a/packaging/binutils-armv7l.spec
+++ b/packaging/binutils-armv7l.spec
@@ -75,8 +75,8 @@ cp %{SOURCE1001} .
%build
RPM_OPT_FLAGS="$RPM_OPT_FLAGS -Wno-error %{?cross:-DIGNORE_BROKEN_PLUGINS}"
-export CFLAGS="${RPM_OPT_FLAGS}"
-export CXXFLAGS="${RPM_OPT_FLAGS}"
+export CFLAGS="${RPM_OPT_FLAGS} -O0"
+export CXXFLAGS="${RPM_OPT_FLAGS} -O0"
mkdir build-dir
cd build-dir
diff --git a/packaging/binutils.spec b/packaging/binutils.spec
index cb05a8965c5..dad000bd8e3 100644
--- a/packaging/binutils.spec
+++ b/packaging/binutils.spec
@@ -72,8 +72,8 @@ cp %{SOURCE1001} .
%build
RPM_OPT_FLAGS="$RPM_OPT_FLAGS -Wno-error %{?cross:-DIGNORE_BROKEN_PLUGINS}"
-export CFLAGS="${RPM_OPT_FLAGS}"
-export CXXFLAGS="${RPM_OPT_FLAGS}"
+export CFLAGS="${RPM_OPT_FLAGS} -O0"
+export CXXFLAGS="${RPM_OPT_FLAGS} -O0"
mkdir build-dir
cd build-dir