Skip to content

Instantly share code, notes, and snippets.

@alanz
Created November 4, 2016 07:04
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save alanz/570eb6f1c0ae7e989f493f1b69904c28 to your computer and use it in GitHub Desktop.
Save alanz/570eb6f1c0ae7e989f493f1b69904c28 to your computer and use it in GitHub Desktop.
#!/bin/sh
# Based on #ghc conversations, the following results in a working build on
# Debian testing with binutils-2.27.9+b1
# First, make sure that the following patches have been applied
#
# arc patch --nobranch D2672
# arc patch --nobranch D2673
# arc patch --nobranch D2674
#
# Then
# make distclean
# ./boot
./configure \
CONF_CC_OPTS_STAGE2=-fno-PIE \
CONF_GCC_LINKER_OPTS_STAGE2=-no-pie \
CONF_LD_LINKER_OPTS_STAGE2=-no-pie \
CONF_CC_OPTS_STAGE0=-no-pie \
CONF_GCC_LINKER_OPTS_STAGE0=-no-pie \
CONF_LD_LINKER_OPTS_STAGE0=-no-pie \
CONF_HC_OPTS_STAGE0=-optl=-no-pie
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment