offrss: add -fcommon workaround
Workaround build failure on -fno-common toolchains like upstream gcc-10. Otherwise build fails as: ld: serve_pdf.o:offrss.h:75: multiple definition of `cgi_url_path'; offrss.o:offrss.h:75: first defined here
This commit is contained in:
parent
ef75dae045
commit
65e363e753
@ -13,6 +13,11 @@ stdenv.mkDerivation rec {
|
|||||||
++ lib.optional (stdenv.hostPlatform == stdenv.buildPlatform) podofo
|
++ lib.optional (stdenv.hostPlatform == stdenv.buildPlatform) podofo
|
||||||
++ lib.optional (!stdenv.isLinux) libiconv;
|
++ lib.optional (!stdenv.isLinux) libiconv;
|
||||||
|
|
||||||
|
# Workaround build failure on -fno-common toolchains:
|
||||||
|
# ld: serve_pdf.o:offrss.h:75: multiple definition of `cgi_url_path';
|
||||||
|
# offrss.o:offrss.h:75: first defined here
|
||||||
|
NIX_CFLAGS_COMPILE = "-fcommon";
|
||||||
|
|
||||||
configurePhase = ''
|
configurePhase = ''
|
||||||
substituteInPlace Makefile \
|
substituteInPlace Makefile \
|
||||||
--replace '$(CC) $(CFLAGS) $(LDFLAGS)' '$(CXX) $(CFLAGS) $(LDFLAGS)'
|
--replace '$(CC) $(CFLAGS) $(LDFLAGS)' '$(CXX) $(CFLAGS) $(LDFLAGS)'
|
||||||
|
Loading…
Reference in New Issue
Block a user