offrss: use c++ compiler for linkage

This commit is contained in:
Piotr Bogdan 2019-01-04 19:33:51 +00:00
parent eb41113270
commit 2e5cb0cb5b

View File

@ -12,7 +12,10 @@ stdenv.mkDerivation {
++ stdenv.lib.optional (stdenv.hostPlatform == stdenv.buildPlatform) podofo
++ stdenv.lib.optional (!stdenv.isLinux) libiconv;
configurePhase = stdenv.lib.optionalString (!stdenv.isLinux) ''
configurePhase = ''
substituteInPlace Makefile \
--replace '$(CC) $(CFLAGS) $(LDFLAGS)' '$(CXX) $(CFLAGS) $(LDFLAGS)'
'' + stdenv.lib.optionalString (!stdenv.isLinux) ''
sed 's/#EXTRA/EXTRA/' -i Makefile
'' + stdenv.lib.optionalString (stdenv.hostPlatform != stdenv.buildPlatform) ''
sed 's/^PDF/#PDF/' -i Makefile