mirror of
https://codeberg.org/kiss-community/repo
synced 2025-04-01 10:42:52 -06:00
libelf: Correctly use LDFLAGS/CPPFLAGS
This commit is contained in:
parent
74b0ee8751
commit
969fbd8cf9
@ -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.
|
||||
|
Loading…
Reference in New Issue
Block a user