build-rsa-tools.sh now works on Linux.
This commit is contained in:
1 parent
ced7437042
commit
06cc3a4e1b
1 file changed
+5
-1
@@ -7,7 +7,11 @@ export TFMDIR="tomsfastmath-0.13.1"
|
|||||||
export LTCDIR="libtomcrypt-1.17"
|
export LTCDIR="libtomcrypt-1.17"
|
||||||
|
|
||||||
function build {
|
function build {
|
||||||
clang -mmacosx-version-min=10.7 -DMAC_OS_X_VERSION_MIN_REQUIRED=1070 -I $TFMDIR/src/headers -I $LTCDIR/src/headers -o "$1" -Wall -O3 "$1.c" rsa_common.c $LTCDIR/libtomcrypt.a $TFMDIR/libtfm.a
|
if [ "$OSTYPE" = "Darwin" ]; then
|
||||||
|
clang -mmacosx-version-min=10.7 -DMAC_OS_X_VERSION_MIN_REQUIRED=1070 -I $TFMDIR/src/headers -I $LTCDIR/src/headers -o "$1" -Wall -O3 "$1.c" rsa_common.c $LTCDIR/libtomcrypt.a $TFMDIR/libtfm.a
|
||||||
|
else
|
||||||
|
gcc -I $TFMDIR/src/headers -I $LTCDIR/src/headers -o "$1" -Wall -O3 "$1.c" rsa_common.c $LTCDIR/libtomcrypt.a $TFMDIR/libtfm.a
|
||||||
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
set -e
|
set -e
|
||||||
|
|||||||
Reference in new issue
Block a user