1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-10-18 19:49:40 +00:00

- Prepare bsd.gecko.mk to unbreak gecko ports with recent versions of GCC

PR:		ports/142736
Submitted by:	bf <bf1783 AT gmail.com>
This commit is contained in:
Beat Gaetzi 2010-08-29 15:16:20 +00:00
parent fcc7127fe3
commit 817bbe5ae9
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=260160

View File

@ -505,9 +505,19 @@ gecko-post-patch:
${MOZSRC}/build/unix/mozilla-config.in
.endif
@${REINPLACE_CMD} -e 's|<iconv.h>|\"${LOCALBASE}/include/iconv.h\"|g' \
${WRKSRC}/configure \
${MOZSRC}/intl/uconv/native/nsNativeUConvService.cpp \
${MOZSRC}/xpcom/io/nsNativeCharsetUtils.cpp
${WRKSRC}/configure
.for subdir in config/system_wrappers nsprpub/config/system_wrappers js/src/config/system_wrappers_js
@${MKDIR} ${MOZSRC}/${subdir}
@${ECHO_CMD} "#pragma GCC system_header" >> ${MOZSRC}/${subdir}/iconv.h
@${ECHO_CMD} "#pragma GCC visibility push(default)" >> ${MOZSRC}/${subdir}/iconv.h
@${ECHO_CMD} "#include \"${LOCALBASE}/include/iconv.h\"" >> ${MOZSRC}/${subdir}/iconv.h
@${ECHO_CMD} "#pragma GCC visibility pop" >> ${MOZSRC}/${subdir}/iconv.h
.endfor
.for subdir in "" nsprpub js/src
@if [ -f ${MOZSRC}/${subdir}/config/system-headers ] ; then \
${ECHO_CMD} "fenv.h" >> ${MOZSRC}/${subdir}/config/system-headers ; \
fi
.endfor
@${REINPLACE_CMD} -e 's|%%MOZILLA%%|${MOZILLA}|g' \
${WRKSRC}/config/autoconf.mk.in
@${REINPLACE_CMD} -e 's|-pthread|${PTHREAD_LIBS}|g ; \