autopackage: don't build with lto on bsd.
Signed-off-by: Seth Howell <seth.howell@intel.com> Change-Id: Icdfa299bbbf8f1b00d891c17da1404bab97a310e Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/2059 Tested-by: SPDK CI Jenkins <sys_sgci@intel.com> Reviewed-by: Ben Walker <benjamin.walker@intel.com> Reviewed-by: Changpeng Liu <changpeng.liu@intel.com> Reviewed-by: Tomasz Zawadzki <tomasz.zawadzki@intel.com>
This commit is contained in:
parent
bf0561f741
commit
deb18088f8
@ -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