mirror of
https://codeberg.org/kiss-community/repo
synced 2024-12-21 23:00:06 -07:00
libelf: Fix build when previous libelf is installed
This commit is contained in:
parent
01252e49a7
commit
23380dfb3d
@ -30,13 +30,13 @@ done
|
||||
|
||||
# Create all objects (.o).
|
||||
for file in libelf/*.c; do
|
||||
${CC:-cc} -I./common $CFLAGS -c -o "${file%%.c}.o" "$file"
|
||||
${CC:-cc} -I./libelf -I./common $CFLAGS -c -o "${file%%.c}.o" "$file"
|
||||
done
|
||||
|
||||
mkdir -p "$1/usr/lib"
|
||||
|
||||
# Create shared library.
|
||||
${CC:-cc} $CFLAGS -I./common libelf/*.o -o "$1/usr/lib/libelf.so.1"
|
||||
${CC:-cc} $CFLAGS -I./libelf -I./common libelf/*.o -o "$1/usr/lib/libelf.so.1"
|
||||
|
||||
# Create static library.
|
||||
${AR:-ar} rc "$1/usr/lib/libelf.a" libelf/*.o
|
||||
|
@ -1 +1 @@
|
||||
0.7.1 1
|
||||
0.7.1 2
|
||||
|
Loading…
Reference in New Issue
Block a user