fbida: pull upstream fix for -fno-common compiler
This commit is contained in:
parent
d5a24b5b9a
commit
7f30088485
1 changed files with 10 additions and 1 deletions
|
@ -10,6 +10,15 @@ stdenv.mkDerivation rec {
|
|||
sha256 = "0f242mix20rgsqz1llibhsz4r2pbvx6k32rmky0zjvnbaqaw1dwm";
|
||||
};
|
||||
|
||||
patches = [
|
||||
# Upstream patch to fix build on -fno-common toolchains.
|
||||
(fetchurl {
|
||||
name = "no-common.patch";
|
||||
url = "https://git.kraxel.org/cgit/fbida/patch/?id=1bb8a8aa29845378903f3c690e17c0867c820da2";
|
||||
sha256 = "0n5vqbp8wd87q60zfwdf22jirggzngypc02ha34gsj1rd6pvwahi";
|
||||
})
|
||||
];
|
||||
|
||||
nativeBuildInputs = [ pkg-config which ];
|
||||
buildInputs = [
|
||||
libexif libjpeg libpng giflib freetype fontconfig libtiff libwebp
|
||||
|
@ -19,7 +28,7 @@ stdenv.mkDerivation rec {
|
|||
|
||||
makeFlags = [ "prefix=$(out)" "verbose=yes" "STRIP=" "JPEG_VER=62" ];
|
||||
|
||||
patchPhase = ''
|
||||
postPatch = ''
|
||||
sed -e 's@ cpp\>@ gcc -E -@' -i GNUmakefile
|
||||
sed -e 's@$(HAVE_LINUX_FB_H)@yes@' -i GNUmakefile
|
||||
'';
|
||||
|
|
Loading…
Reference in a new issue