Skip to content

Instantly share code, notes, and snippets.

@wasamasa
Last active August 29, 2015 14:07
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 wasamasa/a5f19b7e81f133bb4f77 to your computer and use it in GitHub Desktop.
Save wasamasa/a5f19b7e81f133bb4f77 to your computer and use it in GitHub Desktop.
  • git clone --single-branch --depth 1 https://github.com/drmeister/externals-clasp

  • cd externals-clasp

  • cp local.config.linux local.config

  • use externals-clasp.local.config from below as file content of local.config

  • make

  • cd ..

  • git clone --single-branch --depth 1 https://github.com/drmeister/clasp

  • cd clasp

  • cp local.config.linux local.config

  • use clasp.local.config from below as file content of local.config

  • Use 1 or 2 Jobs, make sure you have around 12-6GB of RAM in total by closing other processes and maybe activating extra swap

  • make

#
# What system are you building on? linux or darwin
#
export TARGET_OS = linux
#
# This defines where clasp should put the built clasp application
#
export CLASP_BUILD_TARGET_DIR = $(HOME)/.local/clasp
#
# This defines where externals-clasp put the built libraries
# that clasp needs
#
export EXTERNALS_BUILD_TARGET_DIR = $(HOME)/.local/externals-clasp
#
# This defines how many processors you have available to build with
# More processors = faster build
#
export PJOBS = 2
# --- Dont change the stuff below ---
export LINK = static
export ADDRESS-MODEL = 64
#
# What system are you building on? linux or darwin
#
export TARGET_OS = linux
#
# This defines where externals-clasp will put the built libraries
# that clasp needs
#
export EXTERNALS_BUILD_TARGET_DIR = $(HOME)/.local/externals-clasp
#
# This defines how many processors you have available to build with
# More processors = faster build
#
export PJOBS = 2
#
# This defines where gcc lives
# the gcc executable needs to be at $(GCC_TOOLCHAIN)/bin/gcc
# the g++ executable needs to be at $(GCC_TOOLCHAIN)/bin/g++
#
export GCC_TOOLCHAIN = /usr
#export GCC_EXECUTABLE = <put something here if gcc is not $(GCC_TOOLCHAIN)/bin/gcc>
#export GXX_EXECUTABLE = <put something here if g++ is not $(GCC_TOOLCHAIN)/bin/g++>
#
# ------- Only change if you know what you are doing -------
#
export TOOLSET = gcc
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment