ref: 920ec985a74c6f88fe507181df07a0cd7e51d519
parent: f1f8e002622196de3aa650163e5dc2888ebc7a63
author: Fabian Greffrath <[email protected]>
date: Tue Jun 11 13:03:27 EDT 2019
Fix link failure with gcc-9 and wl,asneeded flags Author: Gianfranco Costamagna <[email protected]> Last-Update: 2019-06-11
--- a/configure.ac
+++ b/configure.ac
@@ -92,7 +92,9 @@
ac_cv_c99_lrintf,
[
lrintf_save_CFLAGS=$CFLAGS
-CFLAGS="-O -lm"
+lrintf_save_LIBS=$LIBS
+CFLAGS="-O"
+LIBS="-lm"
AC_TRY_LINK([
#define _ISOC9X_SOURCE 1
#define _ISOC99_SOURCE 1
@@ -103,6 +105,7 @@
], if (!lrintf(3.14159)) lrintf(2.7183);, ac_cv_c99_lrintf=yes, ac_cv_c99_lrintf=no)
CFLAGS=$lrintf_save_CFLAGS
+LIBS=$lrintf_save_LIBS
])