1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-28 01:06:17 +00:00

- warn about bad ldconfig paths

This commit is contained in:
Dirk Meyer 2005-07-10 08:21:08 +00:00
parent 1d65d7cc7f
commit e72d2b48e7
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=138787

View File

@ -37,18 +37,24 @@ GNUSTEP_WITHOUT_LIBOBJC= yes
BROKEN= "Configure fails on FreeBSD >= 5.x"
.endif
.if !defined(GNUSTEP_WITH_BASE_GCC)
pre-configure:
@if test ! -f "${TARGLIB}/libobjc.so"; then \
${ECHO_MSG} "libobjc.so not found, please update your gcc"; \
${FALSE}; \
fi; \
if test `${LDCONFIG} -r | ${GREP} libobjc.so | wc -l` -eq 0; then \
if test `${LDCONFIG} -r | ${GREP} "${TARGLIB}/libobjc.so" | wc -l` -eq 0; then \
${ECHO_MSG} "trying to fix ldconfig.hints"; \
${LDCONFIG} -f "${WRKDIR}/ldconfig.hints" -m "${TARGLIB}";\
if test `${LDCONFIG} -f "${WRKDIR}/ldconfig.hints" -r | ${GREP} libobjc.so | wc -l` -eq 0; then \
if test `${LDCONFIG} -f "${WRKDIR}/ldconfig.hints" -r | ${GREP} "${TARGLIB}/libobjc.so" | wc -l` -eq 0; then \
${ECHO_MSG} "libobjc.so not in path"; \
${FALSE}; \
fi; \
fi; \
fi;
.endif
.if defined(PARALLEL_PACKAGE_BUILD)
NO_PACKAGE= yes
.endif
.include <bsd.port.post.mk>