diff options
-rw-r--r-- | packaging/rpm-tizen_macros | 9 | ||||
-rw-r--r-- | packaging/rpm.spec | 5 |
2 files changed, 14 insertions, 0 deletions
diff --git a/packaging/rpm-tizen_macros b/packaging/rpm-tizen_macros index e5798b399..f3fa58cd1 100644 --- a/packaging/rpm-tizen_macros +++ b/packaging/rpm-tizen_macros @@ -89,6 +89,9 @@ # Tizen # %configure \ + AR="%__ar"; export AR ; \ + NM="%__nm"; export NM ; \ + RANLIB="%__ranlib"; export RANLIB ; \ CFLAGS="${CFLAGS:-%optflags}" ; export CFLAGS ; \ CXXFLAGS="${CXXFLAGS:-%optflags}" ; export CXXFLAGS ; \ FFLAGS="${FFLAGS:-%optflags -I%_fmoddir}" ; export FFLAGS ; \ @@ -110,6 +113,9 @@ %reconfigure \ + AR="%__ar"; export AR ; \ + NM="%__nm"; export NM ; \ + RANLIB="%__ranlib"; export RANLIB ; \ CFLAGS="${CFLAGS:-%optflags}" ; export CFLAGS ; \ CXXFLAGS="${CXXFLAGS:-%optflags}" ; export CXXFLAGS ; \ FFLAGS="${FFLAGS:-%optflags -I%_fmoddir}" ; export FFLAGS ; \ @@ -131,6 +137,9 @@ --infodir=%{_infodir} %autogen \ + AR="%__ar"; export AR ; \ + NM="%__nm"; export NM ; \ + RANLIB="%__ranlib"; export RANLIB ; \ CFLAGS="${CFLAGS:-%optflags}" ; export CFLAGS ; \ CXXFLAGS="${CXXFLAGS:-%optflags}" ; export CXXFLAGS ; \ FFLAGS="${FFLAGS:-%optflags -I%_fmoddir}" ; export FFLAGS ; \ diff --git a/packaging/rpm.spec b/packaging/rpm.spec index 8a4b3c71d..3dd31dddb 100644 --- a/packaging/rpm.spec +++ b/packaging/rpm.spec @@ -159,6 +159,11 @@ export CFLAGS="-g -O0 -fno-strict-aliasing -ffunction-sections" export CPPFLAGS="$CPPFLAGS -DHWASAN_BUILD" } +# Turn on Binutils wrappers to support LTO plugin for all architectures +export AR=gcc-ar +export NM=gcc-nm +export RANLIB=gcc-ranlib + %reconfigure \ --disable-dependency-tracking \ --with-lua \ |