mirror of
https://github.com/jedisct1/libsodium.git
synced 2026-08-28 12:47:13 +09:00
Add a --enable-opt compile-time switch
This commit is contained in:
@@ -135,6 +135,14 @@ AC_ARG_ENABLE(debug,
|
||||
])
|
||||
])
|
||||
|
||||
AC_ARG_ENABLE(opt,
|
||||
[AS_HELP_STRING(--enable-opt,Optimize for the native CPU - The resulting library will be faster but not portable)],
|
||||
[
|
||||
AS_IF([test "x$enableval" = "xyes"], [
|
||||
CFLAGS="$CFLAGS -flto -march=native"
|
||||
LDFLAGS="$LDFLAGS -flto -march=native"])
|
||||
])
|
||||
|
||||
AC_SUBST([MAINT])
|
||||
|
||||
dnl Checks
|
||||
|
||||
Reference in New Issue
Block a user