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.
28 lines
925 B
Makefile
28 lines
925 B
Makefile
package=native_cdrkit
|
|
$(package)_version=1.1.11
|
|
$(package)_download_path=https://distro.ibiblio.org/fatdog/source/600/c
|
|
$(package)_file_name=cdrkit-$($(package)_version).tar.bz2
|
|
$(package)_sha256_hash=b50d64c214a65b1a79afe3a964c691931a4233e2ba605d793eb85d0ac3652564
|
|
$(package)_patches=cdrkit-deterministic.patch
|
|
|
|
define $(package)_preprocess_cmds
|
|
patch -p1 < $($(package)_patch_dir)/cdrkit-deterministic.patch
|
|
endef
|
|
|
|
# Starting with 10.1, GCC defaults to -fno-common, resulting in linking errors.
|
|
# Pass -fcommon to retain the legacy behaviour.
|
|
define $(package)_config_cmds
|
|
cmake -DCMAKE_INSTALL_PREFIX=$(build_prefix) -DCMAKE_C_FLAGS="-fcommon"
|
|
endef
|
|
|
|
define $(package)_build_cmds
|
|
$(MAKE) genisoimage
|
|
endef
|
|
|
|
define $(package)_stage_cmds
|
|
$(MAKE) DESTDIR=$($(package)_staging_dir) -C genisoimage install
|
|
endef
|
|
|
|
define $(package)_postprocess_cmds
|
|
rm bin/isovfy bin/isoinfo bin/isodump bin/isodebug bin/devdump
|
|
endef
|