Changeset View
Changeset View
Standalone View
Standalone View
math/opensolaris-libm/Makefile
Show All 28 Lines | |||||
# On FreeBSD 10, the base clang (v3.4) cannot even build libm without emitting | # On FreeBSD 10, the base clang (v3.4) cannot even build libm without emitting | ||||
# Internal Compiler Errors, so GCC is required and does not appear as an | # Internal Compiler Errors, so GCC is required and does not appear as an | ||||
# option. Similarly, the GCC option does not appear on DragonFly as the | # option. Similarly, the GCC option does not appear on DragonFly as the | ||||
# base compiler is already GCC. Programs compiled with GCC that link to | # base compiler is already GCC. Programs compiled with GCC that link to | ||||
# these libraries require that the libraries are compiled with GCC for | # these libraries require that the libraries are compiled with GCC for | ||||
# proper functioning. | # proper functioning. | ||||
OPTIONS_DEFINE= GCC | OPTIONS_DEFINE= GCC | ||||
OPTIONS_EXCLUDE_FreeBSD_10= GCC | |||||
OPTIONS_EXCLUDE_DragonFly= GCC | OPTIONS_EXCLUDE_DragonFly= GCC | ||||
GCC_USE= GCC=yes | GCC_USE= GCC=yes | ||||
.include <bsd.port.options.mk> | .include <bsd.port.options.mk> | ||||
.if ${OPSYS} == FreeBSD | .if ${OPSYS} == FreeBSD | ||||
. if ${OSREL:R} < 11 | |||||
USE_GCC= yes | |||||
. endif | |||||
RUN_DEPENDS= ${LOCALBASE}/bin/addr2line:devel/binutils | RUN_DEPENDS= ${LOCALBASE}/bin/addr2line:devel/binutils | ||||
post-patch: | post-patch: | ||||
# The addr2line program in FreeBSD is inadequate, so pull in | # The addr2line program in FreeBSD is inadequate, so pull in | ||||
# binutils on FreeBSD | # binutils on FreeBSD | ||||
@${REINPLACE_CMD} -e 's|/usr/bin|/usr/local/bin|' \ | @${REINPLACE_CMD} -e 's|/usr/bin|/usr/local/bin|' \ | ||||
${WRKSRC}/usr/src/libm/src/m9x/__traceback.c | ${WRKSRC}/usr/src/libm/src/m9x/__traceback.c | ||||
.endif | .endif | ||||
.include <bsd.port.mk> | .include <bsd.port.mk> |