Skip to content

Commit

Permalink
graphics/s2: improve experience for people on POWER newer than POWER7
Browse files Browse the repository at this point in the history
Don't hardcode -mcpu.
  • Loading branch information
pkubaj committed Apr 21, 2022
1 parent 2e91d77 commit f391042
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion graphics/s2/Makefile
Expand Up @@ -20,7 +20,6 @@ LIB_DEPENDS= libgtest.so:devel/googletest
USES= cmake compiler:c++11-lang localbase ssl

CMAKE_ON= BUILD_SHARED_LIBS
CXXFLAGS_powerpc64= -mcpu=power7
USE_LDCONFIG= yes

GH_ACCOUNT= google
Expand All @@ -38,6 +37,12 @@ GFLAGS_LIB_DEPENDS= libgflags.so:devel/gflags
GLOG_CMAKE_BOOL= WITH_GLOG
GLOG_LIB_DEPENDS= libglog.so:devel/glog

.include <bsd.port.options.mk>

.if ${ARCH} == powerpc64 && !defined(CPUTYPE)
CXXFLAGS+= -mcpu=power7
.endif

post-install-EXAMPLES-on:
${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
${INSTALL_PROGRAM} ${INSTALL_WRKSRC}/examples/point_index ${INSTALL_WRKSRC}/examples/term_index ${STAGEDIR}${EXAMPLESDIR}
Expand Down

0 comments on commit f391042

Please sign in to comment.