summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--packaging/coreclr.spec8
1 files 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.