Fix llvm-gcc target name

This commit is contained in:
Michel Alexandre Salim 2009-09-06 18:58:34 +00:00
parent 565c64d884
commit 74aa13e932

View File

@ -187,10 +187,11 @@ cd ..
mkdir gcc-obj mkdir gcc-obj
cd gcc-obj cd gcc-obj
../llvm-gcc-%{lgcc_version}-%{version}.source/configure \ ../llvm-gcc%{lgcc_version}-%{version}.source/configure \
--prefix=%{_prefix} \ --target=%{_target_platform} \
--libdir=%{_libdir} \ --prefix=%{_libdir}/llvm-gcc \
--enable-languages=ada,c,c++ \ --libdir=%{_libdir}/llvm-gcc/%{_lib} \
--enable-languages=c,c++ \
--enable-checking \ --enable-checking \
--enable-llvm=$PWD/../obj \ --enable-llvm=$PWD/../obj \
--disable-bootstrap \ --disable-bootstrap \
@ -250,7 +251,7 @@ rm %{buildroot}%{_libdir}/ocaml/*.o
# Remove deprecated tools. # Remove deprecated tools.
rm %{buildroot}%{_bindir}/gcc{as,ld} rm %{buildroot}%{_bindir}/gcc{as,ld}
sed -i 's,ABS_RUN_DIR/lib",ABS_RUN_DIR/%{_lib}/%{name}",' \ sed -i 's,ABS_RUN_DIR/lib",ABS_RUN_DIR/%{_lib}",' \
%{buildroot}%{_bindir}/llvm-config %{buildroot}%{_bindir}/llvm-config
chmod -x %{buildroot}%{_libdir}/*.[oa] chmod -x %{buildroot}%{_libdir}/*.[oa]
@ -262,7 +263,7 @@ find examples -name 'Makefile'
%if %{?_with_gcc:1}%{!?_with_gcc:0} %if %{?_with_gcc:1}%{!?_with_gcc:0}
# Install llvm-gcc. # Install llvm-gcc.
make -C llvm-gcc%{lgcc_version}-%{version}.source/build install DESTDIR=%{buildroot} make -C ../gcc-obj install DESTDIR=%{buildroot}
cd %{buildroot}%{_libdir}/llvm-gcc/%{_lib} cd %{buildroot}%{_libdir}/llvm-gcc/%{_lib}
find . -name '*.la' -print0 | xargs -0r rm find . -name '*.la' -print0 | xargs -0r rm
find . -name '*.a' -exec %{buildroot}%{_bindir}/llvm-ranlib {} \; find . -name '*.a' -exec %{buildroot}%{_bindir}/llvm-ranlib {} \;
@ -272,8 +273,8 @@ rm llvm-cpp llvm-gccbug llvm-gcov %{_target_platform}-gcc*
cd .. cd ..
mv man/man1/llvm-gcc.1 man/man1/llvm-g++.1 %{buildroot}%{_mandir}/man1 mv man/man1/llvm-gcc.1 man/man1/llvm-g++.1 %{buildroot}%{_mandir}/man1
rm -r info man %{_lib}/libiberty.a rm -r info man %{_lib}/libiberty.a
rm -r libexec/gcc/%{_target_platform}/%{lgcc_version}/install-tools rm -r libexec/gcc/%{_target_platform}/*/install-tools
rm -r %{_lib}/gcc/%{_target_platform}/%{lgcc_version}/install-tools rm -r %{_lib}/gcc/%{_target_platform}/*/install-tools
%endif %endif
@ -372,7 +373,7 @@ rm -rf %{buildroot}
%changelog %changelog
* Sat Sep 5 2009 Michel Salim <salimma@fedoraproject.org> - 2.5-6 * Sat Sep 6 2009 Michel Salim <salimma@fedoraproject.org> - 2.5-6
- Disable assertions (needed by OpenGTL) - Disable assertions (needed by OpenGTL)
- Align spec file with upstream build instructions - Align spec file with upstream build instructions
- Enable llvm-gcc - Enable llvm-gcc