Merge pull request #176592 from trofi/workaround-fno-common-for-offrss
offrss: add -fcommon workaround
This commit is contained in:
commit
f89d70d5d6
1 changed files with 5 additions and 0 deletions
|
@ -13,6 +13,11 @@ stdenv.mkDerivation rec {
|
|||
++ lib.optional (stdenv.hostPlatform == stdenv.buildPlatform) podofo
|
||||
++ 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 = ''
|
||||
substituteInPlace Makefile \
|
||||
--replace '$(CC) $(CFLAGS) $(LDFLAGS)' '$(CXX) $(CFLAGS) $(LDFLAGS)'
|
||||
|
|
Loading…
Reference in a new issue