Bug 1376859

Summary: cdc xlator should use linker and compile options from pkg-config instead of "-fPIC"
Product: [Community] GlusterFS Reporter: Niels de Vos <ndevos>
Component: buildAssignee: bugs <bugs>
Status: CLOSED WONTFIX QA Contact:
Severity: unspecified Docs Contact:
Priority: low    
Version: mainlineCC: atumball, bugs, kkeithle
Target Milestone: ---Keywords: Triaged
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2019-05-09 20:12:35 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Niels de Vos 2016-09-16 15:41:55 UTC
Description of problem:
The cdc xlator does not use the same compiler and linker flags as set by the distribution.

./configure.ac should define the options based on pkg-config or similar.

xlators/features/compress/src/Makefile.am is the affected file:

AM_CPPFLAGS = $(GF_CPPFLAGS) -I$(top_srcdir)/libglusterfs/src \
	-I$(top_srcdir)/rpc/xdr/src -I$(top_builddir)/rpc/xdr/src \
	-fPIC -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -D$(GF_HOST_OS) \
	$(LIBZ_CFLAGS)

Comment 1 Amar Tumballi 2019-05-09 20:12:35 UTC
Removed CDC xlator from the codebase as it was not actively maintained. (>=glusterf-6.0)