summaryrefslogtreecommitdiffstats
path: root/editors/emacs/BUILD
diff options
context:
space:
mode:
Diffstat (limited to 'editors/emacs/BUILD')
-rwxr-xr-xeditors/emacs/BUILD10
1 files changed, 8 insertions, 2 deletions
diff --git a/editors/emacs/BUILD b/editors/emacs/BUILD
index 6cc5d4dd37..f5092cf313 100755
--- a/editors/emacs/BUILD
+++ b/editors/emacs/BUILD
@@ -9,13 +9,19 @@ export LDFLAGS="${LDFLAGS/-z combreloc/}" &&
#
export LDFLAGS="${LDFLAGS//-Wl,-O1/}" &&
+OPTS="$OPTS --with-x-toolkit=$EMACS_XTOOLKIT" &&
if [[ "$EMACS_BRANCH" == "scm" ]]; then
# Crashes with -O3
export CFLAGS="${CFLAGS//-O3/-O2}" &&
- OPTS="$OPTS --build=${BUILD}"
+ OPTS="$OPTS --build=${BUILD}" &&
- [[ $CROSS_INSTALL == on ]] && OPTS="$OPTS --host=${HOST}"
+ if [[ $CROSS_INSTALL == on ]]; then
+ OPTS="$OPTS --host=${HOST}"
+ fi &&
+
+ # Fix broken permissions
+ chmod +x build-aux/update-subdirs &&
./autogen.sh &&
./configure --prefix=${INSTALL_ROOT}/usr \