Link usr/bin/ld to ld.bfd so gcc can find the linker. The binutils rpm

does this in a post-install script.

Remove libgcc_s.so links that aren't needed.

Reported by:	Stari Karp <starikarp@yandex.com>
This commit is contained in:
Tijl Coosemans 2017-02-12 13:46:39 +00:00
parent 7cadc1bd22
commit 679397596b
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=433941
3 changed files with 5 additions and 14 deletions

View file

@ -3,7 +3,7 @@
PORTNAME= devtools PORTNAME= devtools
PORTVERSION= ${LINUX_DIST_VER} PORTVERSION= ${LINUX_DIST_VER}
PORTREVISION= 1 PORTREVISION= 2
CATEGORIES= devel CATEGORIES= devel
BIN_DISTNAMES= binutils-2.25.1-22.base.el7 \ BIN_DISTNAMES= binutils-2.25.1-22.base.el7 \
glibc-headers-2.17-157.el7_3.1 \ glibc-headers-2.17-157.el7_3.1 \
@ -46,18 +46,7 @@ USE_LINUX_RPM= yes
OPTIONS_DEFINE= DOCS NLS OPTIONS_DEFINE= DOCS NLS
OPTIONS_SUB= yes OPTIONS_SUB= yes
.include <bsd.port.pre.mk>
post-install: post-install:
.if ${LINUX_ARCH} == x86_64 ${LN} -sf ld.bfd ${STAGEDIR}${PREFIX}/usr/bin/ld
${LN} -sf ${LINUXBASE}/usr/lib64/libgcc_s.so.1 \
${STAGEDIR}${PREFIX}/usr/lib/gcc/x86_64-redhat-linux/4.8.2/libgcc_s.so
${LN} -sf ${LINUXBASE}/usr/lib/libgcc_s.so.1 \ .include <bsd.port.mk>
${STAGEDIR}${PREFIX}/usr/lib/gcc/x86_64-redhat-linux/4.8.2/32/libgcc_s.so
.else
${LN} -sf ${LINUXBASE}/usr/lib/libgcc_s.so.1 \
${STAGEDIR}${PREFIX}/usr/lib/gcc/i686-redhat-linux/4.8.2/libgcc_s.so
.endif
.include <bsd.port.post.mk>

View file

@ -18,6 +18,7 @@ usr/bin/gcc-ranlib
usr/bin/gcov usr/bin/gcov
usr/bin/gfortran usr/bin/gfortran
usr/bin/gprof usr/bin/gprof
usr/bin/ld
usr/bin/ld.bfd usr/bin/ld.bfd
usr/bin/ld.gold usr/bin/ld.gold
usr/bin/nm usr/bin/nm

View file

@ -21,6 +21,7 @@ usr/bin/gprof
usr/bin/i686-redhat-linux-c++ usr/bin/i686-redhat-linux-c++
usr/bin/i686-redhat-linux-g++ usr/bin/i686-redhat-linux-g++
usr/bin/i686-redhat-linux-gcc usr/bin/i686-redhat-linux-gcc
usr/bin/ld
usr/bin/ld.bfd usr/bin/ld.bfd
usr/bin/ld.gold usr/bin/ld.gold
usr/bin/nm usr/bin/nm