[Model] All
[BinType] AP
[Customer] OPEN
[Issue#] N/A
[Request] N/A
[Occurrence Version] N/A
[Problem] not adjust pie,relro compile option
[Cause & Measure] add pie,relro compile option at Makefile, spec file
[Checking Method]
[Team] Open Source Management and Setting Part
[Developer] dh0128.kwak
[Solution company] Samsung
[Change Type] N/A
Change-Id: I2074e40b9aaff8e455d9ec962f71fe603e05f6a8
Signed-off-by: DongHun Kwak <dh0128.kwak@samsung.com>
# Build the interpreter
$(BUILDPYTHON): Modules/python.o $(LDLIBRARY)
- $(LINKCC) $(LDFLAGS) $(LINKFORSHARED) -o $@ \
+ $(LINKCC) $(LDFLAGS) $(LINKFORSHARED) -pie -o $@ \
Modules/python.o \
$(BLDLIBRARY) $(LIBS) $(MODLIBS) $(SYSLIBS) $(LDLAST)
%build
cp %{S:1001} .
export OPT=$(echo $RPM_OPT_FLAGS | sed -s "s/--param=ssp-buffer-size=32//g")
+export CFLAGS+=" -fPIC"
+export LDFLAGS+=" -Wl,-z,relro"
autoreconf -f -i . # Modules/_ctypes/libffi
# prevent make from trying to rebuild asdl stuff, which requires existing