To avoid unnecessarily modifying ports, add a -lgomp symlink, since GCC

does not ship a -lomp symlink.  Also update OptionalObsoleteFiles for
this, and add 32-bit variants while here.

Submitted by:	jbeich
PR:		237975
MFC after:	3 days
This commit is contained in:
dim 2019-05-19 20:13:55 +00:00
parent 51cab7cfd5
commit 00c7e0eef5
2 changed files with 9 additions and 0 deletions

View File

@ -68,4 +68,6 @@ VERSION_MAP= ${OMPSRC}/exports_so.txt
LIBADD+= pthread
LIBADD+= m
SYMLINKS+= ${SHLIB_NAME} ${LIBDIR}/libgomp.so
.include <bsd.lib.mk>

View File

@ -2746,12 +2746,16 @@ OLD_FILES+=usr/include/omp.h
.endif
OLD_FILES+=usr/lib/libgcov.a
OLD_FILES+=usr/lib/libgomp.a
.if ${MK_OPENMP} == no
OLD_FILES+=usr/lib/libgomp.so
.endif
OLD_LIBS+=usr/lib/libgomp.so.1
OLD_FILES+=usr/lib/libgomp_p.a
OLD_FILES+=usr/lib32/libgcov.a
OLD_FILES+=usr/lib32/libgomp.a
.if ${MK_OPENMP} == no
OLD_FILES+=usr/lib32/libgomp.so
.endif
OLD_LIBS+=usr/lib32/libgomp.so.1
OLD_FILES+=usr/lib32/libgomp_p.a
OLD_FILES+=usr/libexec/cc1
@ -7752,8 +7756,11 @@ OLD_FILES+=usr/share/man/man8/vendstat.8.gz
.if ${MK_OPENMP} == no
.if ${MK_GCC} == no
OLD_FILES+=usr/include/omp.h
OLD_LIBS+=usr/lib/libgomp.so
OLD_LIBS+=usr/lib32/libgomp.so
.endif
OLD_LIBS+=usr/lib/libomp.so
OLD_LIBS+=usr/lib32/libomp.so
.endif
.if ${MK_OPENSSH} == no