Created
November 4, 2016 07:04
-
-
Save alanz/570eb6f1c0ae7e989f493f1b69904c28 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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