From f2aacc5c72625a560c0def9a3f6509afc7f6e520 Mon Sep 17 00:00:00 2001 From: "Liu, Changcheng" Date: Tue, 10 Jan 2023 23:04:00 +0800 Subject: [PATCH] Perftest: enable inherit environment LDFLAGS Sometimes, it needs to use environment to specify the library path to be linked during development stage if the library doesn't exist in system installed path. enable inherit environment LDFLAGS in configure to support it. Signed-off-by: Liu, Changcheng --- configure.ac | 1 + 1 file changed, 1 insertion(+) diff --git a/configure.ac b/configure.ac index 6a704314..756f886f 100755 --- a/configure.ac +++ b/configure.ac @@ -310,6 +310,7 @@ if [test $HAVE_MLX5DV_LIB = yes] && [test $HAVE_MLX5DV = yes]; then fi CFLAGS="-g -Wall -D_GNU_SOURCE -O3 $CFLAGS" +LDFLAGS="$LDFLAGS" LIBS=$LIBS" -lpthread" AC_SUBST([LIBUMAD]) AC_SUBST([LIBMATH])