Index: comms/flrig/Makefile =================================================================== --- comms/flrig/Makefile +++ comms/flrig/Makefile @@ -29,6 +29,12 @@ NATIVE_OPT_CONFIGURE_ON+= --enable-optimizations=native NATIVE_OPT_CONFIGURE_OFF+= --enable-optimizations=none +.include + +# this flag is needed for elfv1 but illegal for elfv2. +# TODO the bogus OSVERSION value is a placeholder for testing. +.if ${OSVERSION} < 9999999 CFLAGS_powerpc64= -mminimal-toc +.endif -.include +.include Index: games/arx-libertatis/Makefile =================================================================== --- games/arx-libertatis/Makefile +++ games/arx-libertatis/Makefile @@ -24,7 +24,6 @@ CMAKE_ARGS= -DDATA_DIR=arx \ -DSTRICT_USE=ON \ -DBUILD_CRASHREPORTER=OFF -CFLAGS_powerpc64+= -mminimal-toc SUB_FILES= pkg-message @@ -42,4 +41,12 @@ ${INSTALL_DATA} ${WRKSRC}/${f} ${STAGEDIR}${DOCSDIR}/ .endfor -.include +.include + +# this flag is needed for elfv1 but illegal for elfv2. +# TODO the bogus OSVERSION value is a placeholder for testing. +.if ${OSVERSION} < 9999999 +CFLAGS_powerpc64= -mminimal-toc +.endif + +.include Index: math/flann/Makefile =================================================================== --- math/flann/Makefile +++ math/flann/Makefile @@ -22,9 +22,15 @@ PLIST_SUB= SHL3=${DISTVERSION:C/-.*//} SHL2=${DISTVERSION:R} -CFLAGS_powerpc64= -mminimal-toc - CMAKE_OFF= BUILD_PYTHON_BINDINGS BUILD_MATLAB_BINDINGS BUILD_EXAMPLES BUILD_TESTS BUILD_DOC \ USE_OPENMP # OpenMP search is broken in cmake: https://gitlab.kitware.com/cmake/cmake/issues/17474 -.include +.include + +# this flag is needed for elfv1 but illegal for elfv2. +# TODO the bogus OSVERSION value is a placeholder for testing. +.if ${OSVERSION} < 9999999 +CFLAGS_powerpc64= -mminimal-toc +.endif + +.include Index: math/pari/Makefile =================================================================== --- math/pari/Makefile +++ math/pari/Makefile @@ -22,7 +22,6 @@ USE_LDCONFIG= yes USE_PERL5= build HAS_CONFIGURE= yes -CFLAGS_powerpc64= -mminimal-toc CONFIGURE_SCRIPT= Configure CONFIGURE_ARGS= --mandir=${MANPREFIX}/man/man1 \ --prefix=${PREFIX} \ @@ -76,4 +75,12 @@ do-test-MPI-on: @cd ${WRKSRC} && ${MAKE_CMD} test-parallel RUNTEST="mpirun -np 3" -.include +.include + +# this flag is needed for elfv1 but illegal for elfv2. +# TODO the bogus OSVERSION value is a placeholder for testing. +.if ${OSVERSION} < 9999999 +CFLAGS_powerpc64= -mminimal-toc +.endif + +.include Index: math/vtk6/Makefile =================================================================== --- math/vtk6/Makefile +++ math/vtk6/Makefile @@ -27,7 +27,6 @@ USES= alias cmake jpeg localbase USE_LDCONFIG= ${PREFIX}/lib/vtk-${VTK_SHORT_VER} USE_XORG= xt sm ice x11 xext -CXXFLAGS_powerpc64= -mminimal-toc VTK_SHORT_VER= ${PORTVERSION:R} PLIST_SUB+= VER2=${VTK_SHORT_VER} @@ -207,4 +206,12 @@ CMAKE_ARGS+= -DBUILD_DOCUMENTATION:BOOL=OFF .endif -.include +.include + +# this flag is needed for elfv1 but illegal for elfv2. +# TODO the bogus OSVERSION value is a placeholder for testing. +.if ${OSVERSION} < 9999999 +CXXFLAGS_powerpc64= -mminimal-toc +.endif + +.include Index: multimedia/gstreamer1-libav/Makefile =================================================================== --- multimedia/gstreamer1-libav/Makefile +++ multimedia/gstreamer1-libav/Makefile @@ -26,7 +26,6 @@ USE_GNOME= glib20 GNU_CONFIGURE= yes INSTALL_TARGET= install-strip -CFLAGS_powerpc64= -mminimal-toc OPTIONS_DEFINE= FFMPEG OPTIONS_DEFAULT=FFMPEG @@ -42,4 +41,12 @@ @${REINPLACE_CMD} -e 's|-Werror||g' \ ${WRKSRC}/configure -.include +.include + +# this flag is needed for elfv1 but illegal for elfv2. +# TODO the bogus OSVERSION value is a placeholder for testing. +.if ${OSVERSION} < 9999999 +CFLAGS_powerpc64= -mminimal-toc +.endif + +.include Index: sysutils/cbsd/Makefile =================================================================== --- sysutils/cbsd/Makefile +++ sysutils/cbsd/Makefile @@ -21,8 +21,6 @@ USE_GITHUB= yes USE_RC_SUBR= cbsdd cbsdrsyncd cbsd-statsd-bhyve cbsd-statsd-hoster cbsd-statsd-jail -CFLAGS_powerpc64= -mminimal-toc - SUB_FILES= pkg-message pkg-deinstall CBSD_HOME?= ${PREFIX}/cbsd @@ -51,4 +49,12 @@ @${MKDIR} ${STAGEDIR}${PREFIX}/libexec/bsdconfig @${LN} -sf ${CBSD_HOME}/share/bsdconfig/cbsd ${STAGEDIR}${PREFIX}/libexec/bsdconfig/cbsd -.include +.include + +# this flag is needed for elfv1 but illegal for elfv2. +# TODO the bogus OSVERSION value is a placeholder for testing. +.if ${OSVERSION} < 9999999 +CFLAGS_powerpc64= -mminimal-toc +.endif + +.include Index: x11-toolkits/qt5-gui/Makefile =================================================================== --- x11-toolkits/qt5-gui/Makefile +++ x11-toolkits/qt5-gui/Makefile @@ -73,8 +73,6 @@ xorg-fonts-truetype>0:x11-fonts/xorg-fonts-truetype .endif -CFLAGS_powerpc64= -mminimal-toc - post-configure: .for d in src/tools/qvkgen src/gui ${MORE_WRKSRCS} ${MKDIR} ${WRKSRC}/${d} @@ -102,4 +100,12 @@ ${MAKE_ARGS} ${INSTALL_TARGET} .endfor -.include +.include + +# this flag is needed for elfv1 but illegal for elfv2. +# TODO the bogus OSVERSION value is a placeholder for testing. +.if ${OSVERSION} < 9999999 +CFLAGS_powerpc64= -mminimal-toc +.endif + +.include