Files
intel-linux-sgx/sdk/cpprt/linux/libunwind/autogen.sh
T
Li, Xun c505e6129a Linux 2.6 Open Source Gold Release
Added support for Reproducible Enclave Build using Docker file.
Added support for Intel AVX-512 instructions and Intel SHA Extensions New Instructions (SHA-NI) in trusted libraries.
Support both EPID and ECDSA based quote for quoting related interfaces in sgx_uae_service library.
Updated key exchange library to support both EPID and ECDSA based remote attestation.
Support new interface to check platform information blob from remote attestation response message.
Fixed bugs.

Signed-off-by: Li, Xun <xun.li@intel.com>
2019-07-05 14:12:24 +08:00

36 lines
1.4 KiB
Bash
Executable File

#!/bin/sh
test -n "$srcdir" || srcdir=`dirname "$0"`
test -n "$srcdir" || srcdir=.
(
cd "$srcdir" &&
autoreconf --force -v --install
) || exit
#CFLAGS="$CFLAGS -g -O0 -std=c99 -fno-builtin -DHAVE_SGX=1 -fPIC -DUNW_LOCAL_ONLY"
if [ "$1" = "1" ]
then
#Build with "make DEBUG=1"
COMMON_FLAGS="$CFLAGS -ggdb -Og"
else
COMMON_FLAGS="$CFLAGS -g -O2"
fi
CFLAGS="$COMMON_FLAGS -std=c99 -fno-builtin -DHAVE_SGX=1 -fPIC -DUNW_LOCAL_ONLY -fdebug-prefix-map=$(pwd)=/libunwind"
# Remove duplicated compiler options and filter out `-nostdinc'
CFLAGS=`echo $CFLAGS | tr ' ' '\n' | grep -v nostdinc | tr '\n' ' '`
export CFLAGS
test -n "$NOCONFIGURE" || "$srcdir/configure" --enable-shared=no \
--disable-block-signals \
--enable-debug=no \
--enable-debug-frame=no \
--enable-coredump=no \
--enable-ptrace=no \
--enable-setjmp=no \
--disable-tests \
--enable-cxx-exceptions
#Remove the HAVE_MINCORE because inside SGX doesn't exist mincore() function
sed -i 's/#define HAVE_MINCORE/\/\/#define HAVE_MINCORE/g' include/config.h