From ee8704f2a6755ddbd6b41537747a630a9398097e Mon Sep 17 00:00:00 2001 From: Packit Service Date: Dec 09 2020 23:59:58 +0000 Subject: Apply patch add-fPIC-flag.patch patch_name: add-fPIC-flag.patch present_in_specfile: true --- diff --git a/Makerules/Target.LINUX.GNU.X86_64 b/Makerules/Target.LINUX.GNU.X86_64 index 5c6127a..c22945e 100755 --- a/Makerules/Target.LINUX.GNU.X86_64 +++ b/Makerules/Target.LINUX.GNU.X86_64 @@ -77,8 +77,8 @@ SHLIB_SONAME=$(notdir $(CMD_TARGETS_SHLIB)) # ---------------------------- # -fcheck-new does the opposite of what the manual implies. # -fcheck-new DISABLES the run-time test of return value from new -CMACH = -pipe -DTARGET_CPU_FAMILY_X86 -Wall -Werror=format-security -D__X86_64__ -DCPU_LE -m64 -fno-strict-aliasing -fstack-protector -CCMACH = -pipe -DTARGET_CPU_FAMILY_X86 -Wall -Werror=format-security -D__X86_64__ -DCPU_LE -m64 -fno-strict-aliasing -fstack-protector -fcheck-new -Wno-ctor-dtor-privacy +CMACH = -fPIC -pipe -DTARGET_CPU_FAMILY_X86 -Wall -Werror=format-security -D__X86_64__ -DCPU_LE -m64 -fno-strict-aliasing -fstack-protector +CCMACH = -fPIC -pipe -DTARGET_CPU_FAMILY_X86 -Wall -Werror=format-security -D__X86_64__ -DCPU_LE -m64 -fno-strict-aliasing -fstack-protector -fcheck-new -Wno-ctor-dtor-privacy ifeq ($(shell expr $(GCC_MAJOR_VERSION) \>= 7), 1) ifeq ($(shell expr $(GCC_MINOR_VERSION) \>= 0), 1) CMACH+= -std=gnu90 -Wno-misleading-indentation -Wno-format-truncation