svn commit: r488674 - head/lang/gcc7-devel
Andreas Tobler
andreast at FreeBSD.org
Sat Dec 29 15:39:50 UTC 2018
Author: andreast (src committer)
Date: Sat Dec 29 15:39:49 2018
New Revision: 488674
URL: https://svnweb.freebsd.org/changeset/ports/488674
Log:
Install 32-bit libraries for powerpc64 if built.
Approved by: gerald@
Modified:
head/lang/gcc7-devel/Makefile
Modified: head/lang/gcc7-devel/Makefile
==============================================================================
--- head/lang/gcc7-devel/Makefile Sat Dec 29 15:38:30 2018 (r488673)
+++ head/lang/gcc7-devel/Makefile Sat Dec 29 15:39:49 2018 (r488674)
@@ -74,6 +74,7 @@ CONFIGURE_ARGS+= --with-cpu=8540 --enable-e500_double
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
@@ -143,7 +144,13 @@ 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}\///}
+
+.if ${ARCH} == powerpc64 && ${PORT_OPTIONS:MMULTILIB}
+ ${MKDIR} ${STAGEDIR}${TARGLIB32}/gcc${SUFFIX}
+ ${MV} ${STAGEDIR}${PREFIX}/lib/lib32/* ${STAGEDIR}${TARGLIB32}/gcc${SUFFIX}
+.endif
+
+.for d in ${TARGLIB:S/^${PREFIX}\///} ${TARGLIB32:S/^${PREFIX}\///} ${LIBEXEC:S/^${PREFIX}\///}
cd ${STAGEDIR}${PREFIX} ; if [ -d $d ]; then \
${FIND} $d -type f -o -type l >>${WRKDIR}/PLIST.lib ;\
fi
More information about the svn-ports-head
mailing list