2
0
mirror of https://codeberg.org/kiss-community/repo synced 2024-12-22 07:10:16 -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). # Create all objects (.o).
for file in libelf/*.c; do 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 done
mkdir -p "$1/usr/lib" mkdir -p "$1/usr/lib"
# Create shared library. # 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. # Create static library.
${AR:-ar} rc "$1/usr/lib/libelf.a" libelf/*.o ${AR:-ar} rc "$1/usr/lib/libelf.a" libelf/*.o

View File

@ -1 +1 @@
0.7.1 1 0.7.1 2