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:
parent
01252e49a7
commit
23380dfb3d
@ -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
|
||||||
|
@ -1 +1 @@
|
|||||||
0.7.1 1
|
0.7.1 2
|
||||||
|
Loading…
Reference in New Issue
Block a user