Index: Makefile =================================================================== --- Makefile (revision 486983) +++ Makefile (working copy) @@ -11,7 +11,8 @@ LICENSE= BSD3CLAUSE -USES= alias cmake:outsource compiler:c++11-lang pkgconfig shebangfix +USES= alias cmake:outsource compiler:c++11-lang localbase:ldflags pkgconfig \ + shebangfix USE_GITHUB= yes GH_ACCOUNT= imageworks @@ -19,7 +20,6 @@ CMAKE_ON= USE_EXTERNAL_TINYXML USE_EXTERNAL_YAML CMAKE_OFF= OCIO_BUILD_JNIGLUE OCIO_BUILD_NUKE OCIO_BUILD_STATIC -LDFLAGS+= -L${LOCALBASE}/lib # pyglue gives an error on use of register # this should only be an error using c++17 CXXFLAGS+= -Wno-deprecated-register @@ -80,6 +80,10 @@ EXTRA_PATCHES= ${PATCHDIR}/libs .endif +.if exists(/usr/lib/libstdc++.so) +CXXFLAGS+= -Wno-unused-function +.endif + post-patch: @${REINPLACE_CMD} -e '/pkg_check_modules/ s|yaml-cpp|&03|' \ ${WRKSRC}/CMakeLists.txt