From 129802fe946dc04dbefe7832cf315bebe4983434 Mon Sep 17 00:00:00 2001 From: Jordan Bancino Date: Sat, 13 Jan 2024 20:31:49 -0500 Subject: [PATCH] Fix ordering of LDFLAGS. --- configure | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/configure b/configure index ed24a17..1da5858 100755 --- a/configure +++ b/configure @@ -61,7 +61,7 @@ for arg in $SCRIPT_ARGS; do # "Fancy" compilers that support a plethora of additional flags we # want to enable if present. CFLAGS="-Wall -Wextra -Werror -pedantic -std=c99 -O3 ${CFLAGS}" - LDFLAGS="-flto -fdata-sections -ffunction-sections -s -Wl,-gc-sections" + LDFLAGS="${LDFLAGS} -flto -fdata-sections -ffunction-sections -s -Wl,-gc-sections" ;; esac ;; @@ -101,7 +101,7 @@ for arg in $SCRIPT_ARGS; do done CFLAGS="${CFLAGS} '-DTELODENDRIA_VERSION=\"${VERSION}\"' ${DEBUG}" -LDFLAGS="${LIBS} ${LDFLAGS}" +LDFLAGS="${LDFLAGS} ${LIBS}" # # Makefile generation