Skip to content

Commit

Permalink
cross-*-linux-musl*: do not remove gcc's stddef.h.
Browse files Browse the repository at this point in the history
It's necessary when cross compiling with -nostdinc.
  • Loading branch information
Juan RP committed May 26, 2015
1 parent 89c4564 commit 224951e
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 12 deletions.
5 changes: 2 additions & 3 deletions srcpkgs/cross-arm-linux-musleabihf/template
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ _sysroot="/usr/${_triplet}"

pkgname=cross-${_triplet}
version=0.17
revision=1
revision=2
short_desc="Cross toolchain for ARMv6 LE Hard Float target (musl)"
maintainer="Juan RP <xtraeme@voidlinux.eu>"
homepage="http://www.voidlinux.eu"
Expand Down Expand Up @@ -193,8 +193,7 @@ do_install() {
make DESTDIR=${DESTDIR}/${_sysroot} install

# Remove useless headers.
rm -rf ${DESTDIR}/usr/lib/gcc/${_triplet}/*/include-fixed/ \
${DESTDIR}/usr/lib/gcc/${_triplet}/*/include/stddef.h
rm -rf ${DESTDIR}/usr/lib/gcc/${_triplet}/*/include-fixed/

# Make ld-musl-armhf.so.1 symlink relative.
ln -sf libc.so ${DESTDIR}/${_sysroot}/usr/lib/ld-musl-armhf.so.1
Expand Down
5 changes: 2 additions & 3 deletions srcpkgs/cross-armv7l-linux-musleabihf/template
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ _sysroot="/usr/${_triplet}"

pkgname=cross-${_triplet}
version=0.17
revision=1
revision=2
short_desc="Cross toolchain for ARMv7 LE Hard Float target (musl)"
maintainer="Juan RP <xtraeme@voidlinux.eu>"
homepage="http://www.voidlinux.eu"
Expand Down Expand Up @@ -193,8 +193,7 @@ do_install() {
make DESTDIR=${DESTDIR}/${_sysroot} install

# Remove useless headers.
rm -rf ${DESTDIR}/usr/lib/gcc/${_triplet}/*/include-fixed/ \
${DESTDIR}/usr/lib/gcc/${_triplet}/*/include/stddef.h
rm -rf ${DESTDIR}/usr/lib/gcc/${_triplet}/*/include-fixed/

# Make ld-musl-armhf.so.1 symlink relative.
ln -sf libc.so ${DESTDIR}/${_sysroot}/usr/lib/ld-musl-armhf.so.1
Expand Down
5 changes: 2 additions & 3 deletions srcpkgs/cross-i686-linux-musl/template
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ _archflags="-march=i686"

pkgname=cross-${_triplet}
version=0.17
revision=2
revision=3
short_desc="Cross toolchain for i686 target (musl)"
maintainer="Juan RP <xtraeme@voidlinux.eu>"
homepage="http://www.voidlinux.eu"
Expand Down Expand Up @@ -192,8 +192,7 @@ do_install() {
make DESTDIR=${DESTDIR}/${_sysroot} install

# Remove useless headers.
rm -rf ${DESTDIR}/usr/lib/gcc/${_triplet}/*/include-fixed/ \
${DESTDIR}/usr/lib/gcc/${_triplet}/*/include/stddef.h
rm -rf ${DESTDIR}/usr/lib/gcc/${_triplet}/*/include-fixed/

# Make ld-musl-i386.so.1 symlink relative to cwd.
cd ${DESTDIR}/${_sysroot}/usr/lib
Expand Down
5 changes: 2 additions & 3 deletions srcpkgs/cross-x86_64-linux-musl/template
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ _sysroot="/usr/${_triplet}"

pkgname=cross-${_triplet}
version=0.17
revision=1
revision=2
short_desc="Cross toolchain for x86_64 with musl"
maintainer="Juan RP <xtraeme@voidlinux.eu>"
homepage="http://www.voidlinux.eu"
Expand Down Expand Up @@ -191,8 +191,7 @@ do_install() {
make DESTDIR=${DESTDIR}/${_sysroot} install

# Remove useless headers.
rm -rf ${DESTDIR}/usr/lib/gcc/${_triplet}/*/include-fixed/ \
${DESTDIR}/usr/lib/gcc/${_triplet}/*/include/stddef.h
rm -rf ${DESTDIR}/usr/lib/gcc/${_triplet}/*/include-fixed/

# Make ld-musl-x86_64.so.1 symlink relative to cwd.
cd ${DESTDIR}/${_sysroot}/usr/lib
Expand Down

0 comments on commit 224951e

Please sign in to comment.