diff options
author | aurel32 <aurelien@aurel32.net> | 2018-03-21 23:43:43 +0100 |
---|---|---|
committer | Andrew Waterman <aswaterman@gmail.com> | 2018-03-21 15:43:43 -0700 |
commit | dcd6ee0893f784320db857cb66f8424a1d154d8d (patch) | |
tree | c5be9d269d6aab29396b303908a1751873daa9bb /configure | |
parent | 5a0e3e55cab1d6f3462c77e852f16365c79f2c98 (diff) | |
download | riscv-pk-dcd6ee0893f784320db857cb66f8424a1d154d8d.zip riscv-pk-dcd6ee0893f784320db857cb66f8424a1d154d8d.tar.gz riscv-pk-dcd6ee0893f784320db857cb66f8424a1d154d8d.tar.bz2 |
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.
Diffstat (limited to 'configure')
-rwxr-xr-x | configure | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -4071,7 +4071,7 @@ fi # 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" # Check whether --enable-32bit was given. if test "${enable_32bit+set}" = set; then : |