[rtems-source-builder commit] Revert commit that breaks sis installation

Jiri Gaisler jiri at rtems.org
Sat Aug 10 15:53:30 UTC 2019


Module:    rtems-source-builder
Branch:    master
Commit:    0487ce69ba76aa0b5328a862dae3e84f6447e196
Changeset: http://git.rtems.org/rtems-source-builder/commit/?id=0487ce69ba76aa0b5328a862dae3e84f6447e196

Author:    Jiri Gaisler <jiri at gaisler.se>
Date:      Sat Aug 10 15:56:12 2019 +0200

Revert commit that breaks sis installation

---

 source-builder/config/sis-2-1.cfg | 17 ++++++++++++-----
 1 file changed, 12 insertions(+), 5 deletions(-)

diff --git a/source-builder/config/sis-2-1.cfg b/source-builder/config/sis-2-1.cfg
index 9875728..a07b2db 100644
--- a/source-builder/config/sis-2-1.cfg
+++ b/source-builder/config/sis-2-1.cfg
@@ -31,19 +31,26 @@ Release:   %{release}
 
   cd sis-%{sis_version}
 
+  ac_prefix=%{_prefix}
+
+  if test "%{_build}" != "%{_host}" ; then
+    CFLAGS_FOR_BUILD="-g -O2 -Wall"
+  fi
+  export CFLAGS CFLAGS_FOR_BUILD CC
+
   if test "%{_target}" != "" ; then
     SIS_PREFIX="%{_target}-"
   fi
-
-  %{host_build_flags}
-
+  CFLAGS="$SB_CFLAGS" \
   ./configure \
-    --build=%{_build} --host=%{_host} --target=%{_target} \
+    --build=%{_build} --host=%{_host} \
     --program-prefix="$SIS_PREFIX" \
-    --prefix=${_prefix}
+    --prefix=${ac_prefix}
 
   %{__make} %{?_smp_mflags} all
 
+  unset CFLAGS_FOR_BUILD
+
   cd ${build_top}
 
 %install




More information about the vc mailing list