2006-08-12 14:34:01 +02:00
|
|
|
#####
|
|
|
|
#
|
|
|
|
# Configuration file for the BLFS module
|
|
|
|
#
|
|
|
|
# $Id$
|
|
|
|
#
|
2006-08-14 20:45:31 +02:00
|
|
|
# Set default envars used in the build scripts
|
2006-08-12 14:34:01 +02:00
|
|
|
#
|
|
|
|
#####
|
|
|
|
|
2006-08-15 13:32:08 +02:00
|
|
|
#======== Common envars ==========
|
2006-08-12 14:34:01 +02:00
|
|
|
|
2017-03-15 22:06:17 +01:00
|
|
|
#--- The build directory:
|
|
|
|
# - If BUILD_SUBDIRS is set, this directory contains sub directories
|
|
|
|
# (one for each package), where packages are unpacked, and compiled.
|
|
|
|
# - If BUILD_SUBDIRS is unset, packages are unpacked, and compiled directly
|
|
|
|
# in $BUILD_ROOT.
|
|
|
|
export BUILD_ROOT=/sources
|
|
|
|
export BUILD_SUBDIRS=1
|
|
|
|
|
|
|
|
#--- The local repository for packages/file:
|
|
|
|
# Any missing file will be downloaded and archived either:
|
|
|
|
# - into a subdirectory (one for each page of the book) fo this directory,
|
|
|
|
# if SRC_SUBDIRS is set.
|
|
|
|
# - directly into this directory if SRC_SUBDIRS is unset.
|
|
|
|
# This directory can be the same as $BUILD_ROOT, provided BUILD_SUBDIRS
|
|
|
|
# and SRC_SUBDIRS are different.
|
2013-10-29 16:42:03 +01:00
|
|
|
export SRC_ARCHIVE=/sources
|
2017-03-15 22:06:17 +01:00
|
|
|
unset SRC_SUBDIRS
|
2006-08-12 14:34:01 +02:00
|
|
|
|
2017-02-27 15:09:03 +01:00
|
|
|
#--- Set a well-known working locale when building software
|
|
|
|
# Note that an UTF-8 locale may be needed for some packages,
|
|
|
|
# but normally it is set in the package instructions.
|
|
|
|
# Furthermore, LANG may be set in /etc/profile, which is
|
2017-11-19 17:59:34 +01:00
|
|
|
# sourced at the end of this file. Note that LC_ALL takes
|
|
|
|
# precedence over LANG. As of {B,}LFS 8.1, this setting is
|
|
|
|
# not needed...
|
|
|
|
# export LC_ALL=C
|
2017-02-27 15:09:03 +01:00
|
|
|
|
2017-03-15 22:06:17 +01:00
|
|
|
#--- Server used if the file isn't found in SRC_DIR,
|
2017-02-27 15:09:03 +01:00
|
|
|
# and cannot be downloaded from upstream.
|
2006-08-12 14:34:01 +02:00
|
|
|
#
|
|
|
|
# The server path MUST be set as listed in
|
2017-02-27 15:09:03 +01:00
|
|
|
# http://www.linuxfromscratch.org/blfs/download.html.
|
|
|
|
# Note that despite the name of the variable, it can be an http url.
|
|
|
|
export FTP_SERVER=http://ftp.osuosl.org/pub/blfs/
|
2006-08-14 20:45:31 +02:00
|
|
|
|
2017-03-15 22:06:17 +01:00
|
|
|
#--- Keep the buid directory to examine it:
|
|
|
|
# If KEEP_FILES is unset, the extracted tarball is removed after build.
|
|
|
|
# Otherwise, the build tree is kept for later study.
|
|
|
|
#export KEEP_FILES=1
|
|
|
|
unset KEEP_FILES
|
|
|
|
|
2017-02-27 15:09:03 +01:00
|
|
|
### Currently not used in scripts ###
|
2013-10-29 16:42:03 +01:00
|
|
|
# Use a server close to you for Xorg (see http://wiki.x.org/wiki/Mirrors)
|
2017-02-27 15:09:03 +01:00
|
|
|
# export FTP_X_SERVER=ftp://mirror.cict.fr/x.org/
|
2015-09-27 14:52:55 +02:00
|
|
|
|
2006-08-26 11:54:19 +02:00
|
|
|
#======== Optimizations =============
|
|
|
|
|
|
|
|
# Global optimization settings can be placed here. This settings can be
|
2017-02-27 15:09:03 +01:00
|
|
|
# overriden by settings in the packages build scripts.
|
2006-08-26 11:54:19 +02:00
|
|
|
|
|
|
|
# WARNING: The use of build optimizations may be dangerous.
|
|
|
|
# You should know what you are doing and be sure that the
|
|
|
|
# optimization settings placed below are what you want.
|
|
|
|
# It there are build issues or the system doesn't work as
|
|
|
|
# expected, please rebuild without optimizations before
|
|
|
|
# asking for support.
|
|
|
|
|
2013-10-29 16:42:03 +01:00
|
|
|
export MAKEFLAGS="-j5"
|
2006-08-26 11:54:19 +02:00
|
|
|
|
2007-07-26 21:46:19 +02:00
|
|
|
#export CFLAGS="-O3 -pipe"
|
|
|
|
#export CXXFLAGS=$CFLAGS
|
|
|
|
#export LDFLAGS="-s"
|
2006-08-26 11:54:19 +02:00
|
|
|
|
2007-07-26 21:46:19 +02:00
|
|
|
#export OTHER_CFLAGS=$CFLAGS
|
|
|
|
#export OTHER_CXXFLAGS=$CXXFLAGS
|
|
|
|
#export OTHER_LDFLAGS=$LDFLAGS
|
2006-08-26 11:54:19 +02:00
|
|
|
|
2013-10-29 16:42:03 +01:00
|
|
|
#======== Environment settings ========
|
|
|
|
|
2017-02-27 15:09:03 +01:00
|
|
|
# The prefered way to setup environment variables nowadays
|
|
|
|
# is to set them in /etc/profile{,.d/*.sh}.
|
|
|
|
# It is recommended to source /etc/profile in this file
|
|
|
|
# since a package may add some new variables in there,
|
|
|
|
# which may be needed later in dependant packages.
|
2013-10-29 16:42:03 +01:00
|
|
|
|
|
|
|
if [ -r /etc/profile ]; then source /etc/profile; fi
|
2017-02-27 15:09:03 +01:00
|
|
|
|
|
|
|
#======== Package management ========
|
|
|
|
|
|
|
|
# We need the functions in "packInstall.sh" when installing a package,
|
|
|
|
# if package management is requested. Note that we have no way to know
|
|
|
|
# whether package management is requested for a given build.
|
|
|
|
# Furthermore, "sudo -E" exports variables, but not functions from
|
|
|
|
# the environment, and sudo needs to be called before porg, due
|
|
|
|
# to porg limitations. So we just export the location of the file
|
|
|
|
# where the functions are defined, and we'll source it just before
|
|
|
|
# installing.
|
|
|
|
|
|
|
|
export PACK_INSTALL=/blfs_root/packInstall.sh # change as needed
|