Prebuild Libs Build Error on Fedora

In the process of switching to using the prebuilt libraries instead of install-deps.sh. Make fails at about halfway. Here’s the log from that:

https://hastebin.com/dotimatike.bash
/usr/bin/ld.gold: error: cannot find -lstdc++

And the CMakeCache.txt generated by make in build_linux:
https://hastebin.com/pejezexoqu.m

One thing that sticks out are the Unsupported CXXFLAG messages. I followed the build instructions though, I wouldn’t think that should happen.

I suspect it’s this line:

if(WITH_STATIC_LIBS)
  set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -static-libstdc++")
endif()

It seems that’s in a separate package on Fedora

If that works for you it should be added to the Fedora build instructions on the wiki.

Thanks a lot Brecht, installing libstdc++-static fixed the error. I’ll add it to the Fedora page of the Building wiki.