offrss: use c++ compiler for linkage
This commit is contained in:
parent
eb41113270
commit
2e5cb0cb5b
1 changed files with 4 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue