Don't add scrypt objects in twice.
This commit is contained in:
parent
385f347b33
commit
9ef265d9de
@ -214,18 +214,22 @@ depend() {
|
||||
}
|
||||
depend_scrypt() {
|
||||
if haslib sodium; then
|
||||
if [[ $CFLAGS != *HAS_SODIUM=1* ]]; then
|
||||
CFLAGS+=" -DHAS_SODIUM=1"
|
||||
LDFLAGS+=" -lsodium"
|
||||
fi
|
||||
return
|
||||
fi
|
||||
|
||||
depend scrypt
|
||||
if [[ $CFLAGS != *HAS_CPERCIVA=1* ]]; then
|
||||
local objects=(
|
||||
"lib/scrypt/src/libcperciva/"*/*.o
|
||||
"lib/scrypt/src/lib/crypto/"*.o
|
||||
)
|
||||
CFLAGS+=" -DHAS_CPERCIVA=1"
|
||||
LDFLAGS+=" -Llib/scrypt/src ${objects[*]}"
|
||||
fi
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user