summaryrefslogtreecommitdiffstats
path: root/m4/attributes.m4
diff options
context:
space:
mode:
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2014-08-03 05:50:22 +0200
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2014-08-03 06:28:12 +0200
commit0943f4b7b22fb676fcd9ede50f8133bf6d4a270b (patch)
treef557cb054df6865fab0b04225cc40e2874883c21 /m4/attributes.m4
parentRevert "libudev: use get_*_creds from shared rather than util_lookup_*" (diff)
downloadsystemd-0943f4b7b22fb676fcd9ede50f8133bf6d4a270b.tar.xz
systemd-0943f4b7b22fb676fcd9ede50f8133bf6d4a270b.zip
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/attributes.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 aa53ef2380..7bd5ad8ef6 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'"])