projects
/
platform
/
upstream
/
protobuf.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b7398cd
)
ckaging: Add '-fPIE' option to protoc
author
Sangjung Woo
<sangjung.woo@samsung.com>
Wed, 24 Feb 2021 05:20:30 +0000
(14:20 +0900)
committer
gichan2-jang
<gichan2.jang@samsung.com>
Mon, 8 Jan 2024 02:26:52 +0000
(11:26 +0900)
To make a 'protoc' as entirely position-independent code, this patch
adds '-fPIE' option to CFLAGS and CFLAGS.
* Jira: https://code.sec.samsung.net/jira/browse/TSDF-222
Change-Id: I7ebbdc105e7d55b46c024badb30c03955df41164
Signed-off-by: Sangjung Woo <sangjung.woo@samsung.com>
packaging/protobuf.spec
patch
|
blob
|
history
diff --git
a/packaging/protobuf.spec
b/packaging/protobuf.spec
index
2fac51d
..
fcaf6ee
100644
(file)
--- a/
packaging/protobuf.spec
+++ b/
packaging/protobuf.spec
@@
-110,7
+110,7
@@
iconv -f iso8859-1 -t utf-8 CONTRIBUTORS.txt > CONTRIBUTORS.txt.utf8
mv CONTRIBUTORS.txt.utf8 CONTRIBUTORS.txt
export PTHREAD_LIBS="-lpthread"
./autogen.sh
-%configure
+%configure
CFLAGS="-fPIE" CPPFLAGS="-fPIE" LDFLAGS="-pie"
make %{?_smp_mflags}