From 438f90f75d08a20fbf43f60361c3498e0c3347d8 Mon Sep 17 00:00:00 2001
From: midipix <writeonce@midipix.org>
Date: Sun, 11 Apr 2021 09:51:28 +0000
Subject: build system: configure: append LIBDIR as the last linker path
 element.

---
 configure | 3 +++
 1 file changed, 3 insertions(+)

(limited to 'configure')

diff --git a/configure b/configure
index 9224416..7c51b56 100755
--- a/configure
+++ b/configure
@@ -631,6 +631,9 @@ common_defaults()
 	mb_cflags_cmdline="$mb_cflags_cmdline $mb_cflags"
 	mb_ldflags_cmdline="$mb_ldflags_cmdline $mb_ldflags"
 
+	# add the prefix's library directory to the linker library path
+	mb_ldflags_last="$mb_ldflags_last -L$mb_libdir"
+
 	# step epilog
 	output_step_epilog
 }
-- 
cgit v1.2.3