From dcd6ee0893f784320db857cb66f8424a1d154d8d Mon Sep 17 00:00:00 2001 From: aurel32 Date: Wed, 21 Mar 2018 23:43:43 +0100 Subject: Fix build with compilers defaulting to PIE (#90) Debian toolchain defaults to PIE, and I guess that will also be the case of most distributions. This cause bbl to be non-functional. This patch fixes that by adding -fno-PIE in the default CFLAGS. --- configure.ac | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'configure.ac') diff --git a/configure.ac b/configure.ac index 7b7c61a..da0d737 100644 --- a/configure.ac +++ b/configure.ac @@ -78,7 +78,7 @@ AC_ARG_VAR(RISCV, [top-level RISC-V install directory]) # Set compiler flags #------------------------------------------------------------------------- -default_CFLAGS="-Wall -Werror -D__NO_INLINE__ -mcmodel=medany -O2 -std=gnu99 -Wno-unused -Wno-attributes -fno-delete-null-pointer-checks" +default_CFLAGS="-Wall -Werror -D__NO_INLINE__ -mcmodel=medany -O2 -std=gnu99 -Wno-unused -Wno-attributes -fno-delete-null-pointer-checks -fno-PIE" AC_ARG_ENABLE([32bit], AS_HELP_STRING([--enable-32bit], [Build a 32-bit pk]), -- cgit v1.1