2
0
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:
Dylan Araps 2020-05-26 14:59:19 +03:00
parent 01252e49a7
commit 23380dfb3d
No known key found for this signature in database
GPG Key ID: 46D62DD9F1DE636E
2 changed files with 3 additions and 3 deletions

View File

@ -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

View File

@ -1 +1 @@
0.7.1 1
0.7.1 2