Merge pull request #176064 from trofi/workaround-fno-common-for-wml

wml: add -fcommon workaround
This commit is contained in:
Sandro 2022-06-03 17:04:35 +02:00 committed by GitHub
commit 6dcaf4e873
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -28,6 +28,10 @@ perlPackages.buildPerlPackage {
patches = [ ./redhat-with-thr.patch ./dynaloader.patch ./no_bitvector.patch ];
# Workaround build failure on -fno-common toolchains:
# ld: iselect_browse.o:(.bss+0x2020): multiple definition of `Line'; iselect_main.o:(.bss+0x100000): first defined here
NIX_CFLAGS_COMPILE = "-fcommon";
hardeningDisable = [ "format" ];
postPatch = ''