From: DongHun Kwak Date: Mon, 29 Jan 2018 02:56:14 +0000 (+0900) Subject: Add PIC, relro compile option X-Git-Tag: submit/tizen_base/20180205.003417^0 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=c3f458bbc1ce09cb6bbec75fb81a36391a618113;p=product%2Fupstream%2Fcoreutils.git Add PIC, relro compile option [Model] All [BinType] AP [Customer] OPEN [Issue#] N/A [Request] N/A [Occurrence Version] N/A [Problem] Add PIC, relro compile option [Cause & Measure] Add PIC, relro compile option [Checking Method] [Team] Open Source Management and Setting Part [Developer] dh0128.kwak [Solution company] Samsung [Change Type] N/A Change-Id: Ie9a28843da39fc22a2ef69d2fc12cd82ef108536 Signed-off-by: DongHun Kwak --- diff --git a/packaging/coreutils.spec b/packaging/coreutils.spec index e558488..1612f11 100644 --- a/packaging/coreutils.spec +++ b/packaging/coreutils.spec @@ -57,8 +57,8 @@ su - run a command with substitute user and group ID %build cp %{SOURCE1001} . -export CFLAGS=" -fpie" -export LDFLAGS=" -pie" +export CFLAGS=" -fPIC" +export LDFLAGS=" -Wl,-z,relro -pie" cp build-aux/config.sub ../mktemp-1.5 cp build-aux/config.guess ../mktemp-1.5