Using the C preprocessor (e.g. by rpcgen) was not possible.
This commit fixes those builds.
name = gcc
version = 4.6.2
name = gcc
version = 4.6.2
maintainer = Michael Tremer <michael.tremer@ipfire.org>
groups = Development/Compilers
maintainer = Michael Tremer <michael.tremer@ipfire.org>
groups = Development/Compilers
FULLPATH="%{BUILDROOT}%{libdir}/gcc/%{DISTRO_BUILDTARGET}/%{version}"
[ -d "${FULLPATH}" ] || exit 1
FULLPATH="%{BUILDROOT}%{libdir}/gcc/%{DISTRO_BUILDTARGET}/%{version}"
[ -d "${FULLPATH}" ] || exit 1
- mkdir -pv %{BUILDROOT}/%{lib}
- ln -sfv ../usr/bin/cpp %{BUILDROOT}/%{lib}/cpp
+ mkdir -pv %{BUILDROOT}/lib
+ ln -sfv ../usr/bin/cpp %{BUILDROOT}/lib/cpp
ln -sfv gcc %{BUILDROOT}/usr/bin/cc
# Move libgcc_s to /lib
ln -sfv gcc %{BUILDROOT}/usr/bin/cc
# Move libgcc_s to /lib