From 6f95d2d5740e2ac5f0f999b013928f8b38293b1e Mon Sep 17 00:00:00 2001 From: Jiyoung Yun Date: Fri, 14 Jul 2017 19:10:37 +0900 Subject: Do not use inherited CFLAGS and CXXFLAGS To maintain compatibility between externally built coreclr and corefx output and obs built output. Change-Id: I1a467dcb24332ed5884add836ac8f60c01454aad Signed-off-by: Jiyoung Yun --- packaging/coreclr.spec | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/packaging/coreclr.spec b/packaging/coreclr.spec index ad88d75fba..72695a0aad 100644 --- a/packaging/coreclr.spec +++ b/packaging/coreclr.spec @@ -173,12 +173,8 @@ done %build -# These flags aren't supported by clang -export CFLAGS=$(echo $CFLAGS | sed -e "s/-Wa,-mimplicit-it=thumb//;s/-mimplicit-it=thumb//;s/-Wl,--hash-style=gnu//;s/-Wl,-O1//;s/-Wl,--as-needed//") -export CXXFLAGS=$(echo $CXXFLAGS | sed -e "s/-integrated-as//;s/-mimplicit-it=thumb//;s/-Wl,--hash-style=gnu//;s/-Wl,-O1//;s/-Wl,--as-needed//") - -export CFLAGS+=" --target=%{_host} " -export CXXFLAGS+=" --target=%{_host} " +export CFLAGS=" --target=%{_host} " +export CXXFLAGS=" --target=%{_host} " %ifarch x86_64 # Even though build architectur is x86_64, it will be running on arm board. -- cgit v1.2.3