mirror of
https://codeberg.org/kiss-community/repo
synced 2025-04-03 11:37:21 -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).
|
# Create all objects (.o).
|
||||||
for file in libelf/*.c; do
|
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"
|
-o "${file%%.c}.o" "$file"
|
||||||
done
|
done
|
||||||
|
|
||||||
mkdir -p "$1/usr/lib"
|
mkdir -p "$1/usr/lib"
|
||||||
|
|
||||||
# Create shared library.
|
# 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"
|
-o "$1/usr/lib/libelf.so.1"
|
||||||
|
|
||||||
# Create static library.
|
# Create static library.
|
||||||
|
Loading…
Reference in New Issue
Block a user