[Groonga-commit] groonga/groonga at 1d44e07 [master] httpd: apply PIE related linker flags

Back to archive index

HAYASHI Kentaro null+****@clear*****
Thu Apr 25 17:12:01 JST 2013


HAYASHI Kentaro	2013-04-25 17:12:01 +0900 (Thu, 25 Apr 2013)

  New Revision: 1d44e07764c72c9d1f2b20a3bd241f25a66e46af
  https://github.com/groonga/groonga/commit/1d44e07764c72c9d1f2b20a3bd241f25a66e46af

  Message:
    httpd: apply PIE related linker flags
    
    This is workaround for passing PIE related linker flags.
    We should use --with-ld-opt for this purpose, but...

  Modified files:
    src/httpd/configure

  Modified: src/httpd/configure (+7 -0)
===================================================================
--- src/httpd/configure    2013-04-25 15:26:46 +0900 (97a3e86)
+++ src/httpd/configure    2013-04-25 17:12:01 +0900 (00a7a68)
@@ -85,3 +85,10 @@ if [ "${GROONGA_HTTPD_DEBUG}" = "yes" ]; then
     -e '/^CFLAGS =/ s/ -g / -ggdb3 /' \
     objs/Makefile
 fi
+
+# Consider security by using position independent code (PIE).
+# See http://fedoraproject.org/wiki/Packaging:Guidelines#PIE
+# This is workaround for passing PIE related linker flags.
+if [ -f /etc/redhat-release ]; then
+  sed -i'' -e 's/lz/lz $(RPM_LD_FLAGS)/' objs/Makefile
+fi
-------------- next part --------------
HTML����������������������������...
Download 



More information about the Groonga-commit mailing list
Back to archive index