From 969fbd8cf9634df8c816c17fd8fd8f2b2087e587 Mon Sep 17 00:00:00 2001 From: Dylan Araps Date: Tue, 26 May 2020 18:23:35 +0300 Subject: [PATCH] libelf: Correctly use LDFLAGS/CPPFLAGS --- extra/libelf/build | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/extra/libelf/build b/extra/libelf/build index e67644de..15326337 100755 --- a/extra/libelf/build +++ b/extra/libelf/build @@ -31,14 +31,14 @@ done # Create all objects (.o). for file in libelf/*.c; do - ${CC:-cc} -I./libelf -I./common $LDFLAGS $CFLAGS $CPPFLAGS -c \ + ${CC:-cc} -I./libelf -I./common $CFLAGS $CPPFLAGS -c \ -o "${file%%.c}.o" "$file" done mkdir -p "$1/usr/lib" # Create shared library. -${CC:-cc} $LDFLAGS $CFLAGS $CPPFLAGS -I./libelf -I./common libelf/*.o \ +${CC:-cc} $LDFLAGS $CFLAGS -I./libelf -I./common libelf/*.o \ -o "$1/usr/lib/libelf.so.1" # Create static library.