summaryrefslogtreecommitdiff
path: root/m4
diff options
context:
space:
mode:
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2014-08-02 23:50:22 -0400
committerLucas De Marchi <lucas.demarchi@intel.com>2015-02-24 22:42:06 -0300
commita8f3aaebbe3cc39dc23f48d45865efa747b80ffa (patch)
tree4a25074b543dd64fad73634ee2916bc8a62d5bff /m4
parent779729cf535549bfd687227da2385b607cc31a61 (diff)
downloadkmod-a8f3aaebbe3cc39dc23f48d45865efa747b80ffa.tar.gz
kmod-a8f3aaebbe3cc39dc23f48d45865efa747b80ffa.tar.bz2
kmod-a8f3aaebbe3cc39dc23f48d45865efa747b80ffa.zip
from systemd: build-sys: fix conftest.c to work on arm
All tests for compiler support were failing with: /usr/bin/ld: /tmp/ccwnVc2A.o: relocation R_ARM_MOVW_ABS_NC against `a' can not be used when making a shared object; recompile with -fPIC
Diffstat (limited to 'm4')
-rw-r--r--m4/attributes.m42
1 files changed, 1 insertions, 1 deletions
diff --git a/m4/attributes.m4 b/m4/attributes.m4
index fad1c8f..ab4b785 100644
--- a/m4/attributes.m4
+++ b/m4/attributes.m4
@@ -42,7 +42,7 @@ AC_DEFUN([CC_CHECK_FLAG_APPEND], [
AS_TR_SH([cc_cv_$2_$3]),
[eval "AS_TR_SH([cc_save_$2])='${$2}'"
eval "AS_TR_SH([$2])='-Werror $3'"
- AC_LINK_IFELSE([AC_LANG_SOURCE([int a = 0; int main(void) { return a; } ])],
+ AC_LINK_IFELSE([AC_LANG_SOURCE([int main(void) { return 0; } ])],
[eval "AS_TR_SH([cc_cv_$2_$3])='yes'"],
[eval "AS_TR_SH([cc_cv_$2_$3])='no'"])
eval "AS_TR_SH([$2])='$cc_save_$2'"])