mirror of
https://git.FreeBSD.org/ports.git
synced 2024-10-18 19:49:40 +00:00
Backport r488673 | andreast | 2018-12-29 from lang/gcc7:
Fix build of GCC on powerpc64. While building GCC itself we have to use the built GCC libraries to configure additional parts of GCC and not the libraires from the host. Install the built 32-bit libraries. This was not done up to now. And no longer required GCC 5 to build on powerpc64, making this port a natural choice of a "base" for newer members of the lang/gcc* family. PR: 235964, 231804 Submitted by: Piotr Kubaj <pkubaj@anongoth.pl>
This commit is contained in:
parent
af8fe7673b
commit
48c4d64957
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=494220
@ -79,9 +79,6 @@ MAKE_ARGS+=STAGE1_CXXFLAGS=-fbracket-depth=512
|
||||
|
||||
.elif ${ARCH} == powerpc64
|
||||
CONFIGURE_ENV+= UNAME_m="powerpc64"
|
||||
USE_GCC= 5 # This port requires at least GCC 4.9, and we need
|
||||
# to ensure not to cause a dependency on itself (so
|
||||
# USE_GCC=yes or USE_GCC=X+ are not an option).
|
||||
|
||||
.elif ${ARCH} == powerpcspe
|
||||
CONFIGURE_ARGS+= --with-cpu=8548 --enable-e500_double --without-fp
|
||||
@ -89,6 +86,7 @@ CONFIGURE_ARGS+= --with-cpu=8548 --enable-e500_double --without-fp
|
||||
|
||||
LANGUAGES:= c,c++,objc,fortran
|
||||
TARGLIB= ${PREFIX}/lib/gcc${SUFFIX}
|
||||
TARGLIB32= ${PREFIX}/lib32 # The version information is added later
|
||||
LIBEXEC= ${PREFIX}/libexec/gcc${SUFFIX}
|
||||
GNU_CONFIGURE= yes
|
||||
CONFIGURE_OUTSOURCE= yes
|
||||
@ -174,7 +172,14 @@ post-stage:
|
||||
${RM} -r ${STAGEDIR}${TARGLIB}/gcc/*/${GCC_VERSION}/include-fixed/
|
||||
# Add target libraries and include files to packaging list.
|
||||
${RM} ${WRKDIR}/PLIST.lib
|
||||
.for d in ${TARGLIB:S/^${PREFIX}\///} ${LIBEXEC:S/^${PREFIX}\///} include/gcj include/gnu include/java include/javax
|
||||
|
||||
.if ${ARCH} == powerpc64 && ${PORT_OPTIONS:MMULTILIB}
|
||||
${MKDIR} ${STAGEDIR}${TARGLIB32}/gcc${SUFFIX}
|
||||
${MV} ${STAGEDIR}${PREFIX}/lib/lib32/* ${STAGEDIR}${TARGLIB32}/gcc${SUFFIX}
|
||||
${RMDIR} ${STAGEDIR}${PREFIX}/lib/lib32
|
||||
.endif
|
||||
|
||||
.for d in ${TARGLIB:S/^${PREFIX}\///} ${TARGLIB32:S/^${PREFIX}\///} ${LIBEXEC:S/^${PREFIX}\///} include/gcj include/gnu include/java include/javax
|
||||
cd ${STAGEDIR}${PREFIX} ; if [ -d $d ]; then \
|
||||
${FIND} $d -type f -o -type l >>${WRKDIR}/PLIST.lib ;\
|
||||
fi
|
||||
|
Loading…
Reference in New Issue
Block a user