catdvi: fix generated code in configure script; fix darwin
add an int to generated main function to fix implicit int error
This commit is contained in:
parent
0c6d8c7833
commit
9559cea14a
@ -28,6 +28,11 @@ stdenv.mkDerivation (finalAttrs: {
|
|||||||
})
|
})
|
||||||
];
|
];
|
||||||
|
|
||||||
|
# fix implicit-int compile error in test code used in configure script
|
||||||
|
postPatch = ''
|
||||||
|
sed -i 's/^main()/int main()/' configure
|
||||||
|
'';
|
||||||
|
|
||||||
hardeningDisable = [ "format" ];
|
hardeningDisable = [ "format" ];
|
||||||
|
|
||||||
outputs = [ "out" ] ++ lib.optional (with stdenv; buildPlatform.canExecute hostPlatform) "dev";
|
outputs = [ "out" ] ++ lib.optional (with stdenv; buildPlatform.canExecute hostPlatform) "dev";
|
||||||
|
Loading…
Reference in New Issue
Block a user