Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 1 | Some options checked in this loop are needing linking to find out |
| 2 | if the option can be used or not e.g. -fstack-protector which needs |
| 3 | libssp to be staged and available for compiler to link against |
| 4 | Therefore we change the compile only check to compile and link check |
| 5 | |
| 6 | Signed-off-by: Khem Raj <raj.khem@gmail.com> |
| 7 | Upstream-Status: Pending |
| 8 | |
| 9 | Index: rpm-5.4.14/configure.ac |
| 10 | =================================================================== |
| 11 | --- rpm-5.4.14.orig/configure.ac |
| 12 | +++ rpm-5.4.14/configure.ac |
| 13 | @@ -201,7 +201,7 @@ dnl # GNU GCC (usually "gcc") |
| 14 | my_save_cflags="$CFLAGS" |
| 15 | CFLAGS=$c |
| 16 | AC_MSG_CHECKING([whether GCC supports $c]) |
| 17 | - AC_COMPILE_IFELSE([AC_LANG_PROGRAM([])], |
| 18 | + AC_LINK_IFELSE([AC_LANG_PROGRAM([])], |
| 19 | [AC_MSG_RESULT([yes])] |
| 20 | [my_cflags=$c], |
| 21 | [AC_MSG_RESULT([no])] |