Permalink
Browse files

Check compiler for relro support instead of linker

We use the compiler for linking in most cases
instead of calling ld directly.

Do this the same way as we do for the recursor.
Fixes #2172

(cherry picked from commit cc8ac2e)
  • Loading branch information...
1 parent 5f57ee8 commit d09931d8074bc67656aa28c8e5cd8631de0e3a36 @rubenk rubenk committed Feb 20, 2015
Showing with 1 addition and 1 deletion.
  1. +1 −1 m4/pdns_relro.m4
View
@@ -22,7 +22,7 @@ AC_DEFUN([AC_LD_RELRO],[
AC_MSG_CHECKING([for how to force completely read-only GOT table])
RELRO_LDFLAGS=
- ld_help=`$LD --help 2>&1`
+ ld_help=`$CXX -Wl,-help 2>&1`
case $ld_help in
*"-z relro"*) RELRO_LDFLAGS="-Wl,-z -Wl,relro" ;;
esac

0 comments on commit d09931d

Please sign in to comment.