blob: 0474c65a893c2b5c782cb93f1ee53e333362fce2 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
Some options checked in this loop are needing linking to find out
if the option can be used or not e.g. -fstack-protector which needs
libssp to be staged and available for compiler to link against
Therefore we change the compile only check to compile and link check
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Upstream-Status: Pending
Index: rpm-5.4.0/configure.ac
===================================================================
--- rpm-5.4.0.orig/configure.ac 2012-06-01 11:41:19.741480143 -0700
+++ rpm-5.4.0/configure.ac 2012-06-01 11:41:51.773481676 -0700
@@ -193,7 +193,7 @@
my_save_cflags="$CFLAGS"
CFLAGS=$c
AC_MSG_CHECKING([whether GCC supports $c])
- AC_COMPILE_IFELSE([AC_LANG_PROGRAM([])],
+ AC_LINK_IFELSE([AC_LANG_PROGRAM([])],
[AC_MSG_RESULT([yes])]
[my_cflags=$c],
[AC_MSG_RESULT([no])]
|