jpeg-archive: add -fcommon workaround
Workaround build failure on -fno-common toolchains like upstream gcc-10. Otherwise build fails as: ld: src/util.o:(.bss+0x0): multiple definition of `progname'; /build/ccBZT2Za.o:(.bss+0x20): first defined here
This commit is contained in:
parent
25e4e7af03
commit
ed01f5bd6d
@ -21,6 +21,12 @@ stdenv.mkDerivation {
|
|||||||
substituteInPlace Makefile --replace 'LIBJPEG =' 'LIBJPEG ?='
|
substituteInPlace Makefile --replace 'LIBJPEG =' 'LIBJPEG ?='
|
||||||
'';
|
'';
|
||||||
|
|
||||||
|
# Workaround build failure on -fno-common toolchains like upstream
|
||||||
|
# gcc-10. Otherwise build fails as:
|
||||||
|
# ld: src/util.o:(.bss+0x0): multiple definition of `progname'; /build/ccBZT2Za.o:(.bss+0x20): first defined here
|
||||||
|
# https://github.com/danielgtaylor/jpeg-archive/issues/119
|
||||||
|
NIX_CFLAGS_COMPILE = "-fcommon";
|
||||||
|
|
||||||
makeFlags = [
|
makeFlags = [
|
||||||
"CC=${stdenv.cc.targetPrefix}cc"
|
"CC=${stdenv.cc.targetPrefix}cc"
|
||||||
"PREFIX=$(out)"
|
"PREFIX=$(out)"
|
||||||
|
Loading…
Reference in New Issue
Block a user