svn commit: r488677 - head/lang/gcc9-devel
Andreas Tobler
andreast at FreeBSD.org
Sat Dec 29 15:41:45 UTC 2018
Author: andreast (src committer)
Date: Sat Dec 29 15:41:44 2018
New Revision: 488677
URL: https://svnweb.freebsd.org/changeset/ports/488677
Log:
Install 32-bit libraries for powerpc64 if built.
Approved by: gerald@
Modified:
head/lang/gcc9-devel/Makefile
Modified: head/lang/gcc9-devel/Makefile
==============================================================================
--- head/lang/gcc9-devel/Makefile Sat Dec 29 15:41:15 2018 (r488676)
+++ head/lang/gcc9-devel/Makefile Sat Dec 29 15:41:44 2018 (r488677)
@@ -70,6 +70,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
@@ -139,7 +140,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-all
mailing list