summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBjörn Jacke <bj@sernet.de>2010-05-29 01:40:21 +0200
committerKarolin Seeger <kseeger@samba.org>2010-06-18 08:33:31 +0200
commit657a7da5211f11928de7f4c83b3fd56fb609951a (patch)
tree3e9bd8a8f9fd1a23efb368017f3eca8163add7fe
parentfa0617bca326e69aa51a6046adecdfde9829cd06 (diff)
downloadsamba-657a7da5211f11928de7f4c83b3fd56fb609951a.tar.gz
s3: fix check for pie compiler flags
some compilers (HP and Sun e.g.) output warning messages on stderr for unknown options and we ended up partly using some unwanted random compile flags we did't intend to use. (cherry picked from commit e8468ab02b201885b6a211c4b27913014ee9a5a2)
-rw-r--r--source3/configure.in4
1 files changed, 2 insertions, 2 deletions
diff --git a/source3/configure.in b/source3/configure.in
index 8048602e83c..b9d5da11cc8 100644
--- a/source3/configure.in
+++ b/source3/configure.in
@@ -1436,9 +1436,9 @@ then
[
cat > conftest.c <<EOF
int foo;
-main () { return 0;}
+int main () { return 0;}
EOF
- if AC_TRY_COMMAND([${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS -pie -fPIE -o conftest conftest.c 1>&AS_MESSAGE_LOG_FD])
+ if AC_TRY_COMMAND_NO_STDERR([${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS -pie -fPIE -o conftest conftest.c])
then
samba_cv_fpie=yes
else