Page MenuHomePhabricator

build: pass -fcommon when building genisoimage
ClosedPublic

Authored by Fabien on Aug 21 2020, 21:15.

Details

Reviewers
jasonbcox
Group Reviewers
Restricted Project
Commits
rABC5da31f57d807: build: pass -fcommon when building genisoimage
Summary

Starting with the 10.1 release, GCC defaults to -fno-common. This causes
linking issues when building genisoimage:

bash
[ 98%] Building C object
genisoimage/CMakeFiles/genisoimage.dir/checksum.o
[100%] Linking C executable genisoimage
/usr/bin/ld: CMakeFiles/genisoimage.dir/apple.o:(.bss+0x0): multiple
definition of `outfile';
CMakeFiles/genisoimage.dir/genisoimage.o:(.bss+0x0): first defined here
/usr/bin/ld: CMakeFiles/genisoimage.dir/boot.o:(.bss+0x0): multiple
definition of `outfile';
CMakeFiles/genisoimage.dir/genisoimage.o:(.bss+0x0): first defined here
/usr/bin/ld: CMakeFiles/genisoimage.dir/desktop.o:(.bss+0x0): multiple
definition of `outfile';
CMakeFiles/genisoimage.dir/genisoimage.o:(.bss+0x0): first defined here
/usr/bin/ld: CMakeFiles/genisoimage.dir/dvd_file.o:(.bss+0x0): multiple
definition of `outfile';
CMakeFiles/genisoimage.dir/genisoimage.o:(.bss+0x0): first defined here

Rather than patching genisoimage further, pass -fcommon to preserve the
legacy GCC behaviour.

Backport of core PR19553.
Fixes the OSX depends build on Arch.

Test Plan
cd depends
make build-osx

Diff Detail

Repository
rABC Bitcoin ABC
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

Fabien requested review of this revision.Aug 21 2020, 21:15

[Bot Message]
One or more PR numbers were detected in the summary.
Links to those PRs have been inserted into the summary for reference.

This revision is now accepted and ready to land.Aug 22 2020, 04:23