autopackage: don't build with lto on bsd.
Signed-off-by: Seth Howell <seth.howell@intel.com>
Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/2059 (master)
(cherry picked from commit deb18088f8
)
Change-Id: Icdfa299bbbf8f1b00d891c17da1404bab97a310e
Signed-off-by: Tomasz Zawadzki <tomasz.zawadzki@intel.com>
Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/2078
Reviewed-by: Ben Walker <benjamin.walker@intel.com>
Reviewed-by: Seth Howell <seth.howell@intel.com>
Reviewed-by: Aleksey Marchuk <alexeymar@mellanox.com>
Tested-by: SPDK CI Jenkins <sys_sgci@intel.com>
This commit is contained in:
parent
0afad8dd11
commit
10adee24ff
@ -35,7 +35,12 @@ fi
|
||||
|
||||
timing_enter build_release
|
||||
|
||||
./configure $(get_config_params) --disable-debug --enable-lto --disable-unit-tests
|
||||
if [ $(uname -s) = Linux ]; then
|
||||
./configure $(get_config_params) --disable-debug --enable-lto --disable-unit-tests
|
||||
else
|
||||
# LTO needs a special compiler to work on BSD.
|
||||
./configure $(get_config_params) --disable-debug
|
||||
fi
|
||||
$MAKE ${MAKEFLAGS}
|
||||
$MAKE ${MAKEFLAGS} clean
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user