source: BLFS/envars.conf@ df97e68

2.4 ablfs-more legacy trunk
Last change on this file since df97e68 was 342c862, checked in by Pierre Labastie <pierre@…>, 8 years ago

Merge new_feature branch r3884 to3886:

  • Adapt BLFS/envars.conf to modern BLFS books
  • Fix try order for downloading BLFS packages
  • Fixes to use the XORG Legacy page in BLFS
  • Property mode set to 100644
File size: 2.9 KB
Line 
1#####
2#
3# Configuration file for the BLFS module
4#
5# $Id$
6#
7# Set default envars used in the build scripts
8#
9#####
10
11#======== Common envars ==========
12
13#--- The sources directory.
14# This directory contains sub directories (one for each package), where
15# packages are stored, unpacked, and compiled.
16export SRC_DIR=/sources
17
18#--- The local repository for packages/file
19# Any missing file will be downloaded and archived here,
20# if the user has the right priviledges. Can be the same as SRC_DIR
21export SRC_ARCHIVE=/sources
22
23#--- Set a well-known working locale when building software
24# Note that an UTF-8 locale may be needed for some packages,
25# but normally it is set in the package instructions.
26# Furthermore, LANG may be set in /etc/profile, which is
27# sourced at the end of this file.
28export LC_ALL=C
29
30#--- Server used if the file isn't found in SRC_ARCHIVE or SRC_DIR,
31# and cannot be downloaded from upstream.
32#
33# The server path MUST be set as listed in
34# http://www.linuxfromscratch.org/blfs/download.html.
35# Note that despite the name of the variable, it can be an http url.
36export FTP_SERVER=http://ftp.osuosl.org/pub/blfs/
37
38### Currently not used in scripts ###
39# Use a server close to you for Xorg (see http://wiki.x.org/wiki/Mirrors)
40# export FTP_X_SERVER=ftp://mirror.cict.fr/x.org/
41
42#======== Optimizations =============
43
44# Global optimization settings can be placed here. This settings can be
45# overriden by settings in the packages build scripts.
46
47# WARNING: The use of build optimizations may be dangerous.
48# You should know what you are doing and be sure that the
49# optimization settings placed below are what you want.
50# It there are build issues or the system doesn't work as
51# expected, please rebuild without optimizations before
52# asking for support.
53
54export MAKEFLAGS="-j5"
55
56#export CFLAGS="-O3 -pipe"
57#export CXXFLAGS=$CFLAGS
58#export LDFLAGS="-s"
59
60#export OTHER_CFLAGS=$CFLAGS
61#export OTHER_CXXFLAGS=$CXXFLAGS
62#export OTHER_LDFLAGS=$LDFLAGS
63
64#======== Environment settings ========
65
66# The prefered way to setup environment variables nowadays
67# is to set them in /etc/profile{,.d/*.sh}.
68# It is recommended to source /etc/profile in this file
69# since a package may add some new variables in there,
70# which may be needed later in dependant packages.
71
72if [ -r /etc/profile ]; then source /etc/profile; fi
73
74#======== Package management ========
75
76# We need the functions in "packInstall.sh" when installing a package,
77# if package management is requested. Note that we have no way to know
78# whether package management is requested for a given build.
79# Furthermore, "sudo -E" exports variables, but not functions from
80# the environment, and sudo needs to be called before porg, due
81# to porg limitations. So we just export the location of the file
82# where the functions are defined, and we'll source it just before
83# installing.
84
85export PACK_INSTALL=/blfs_root/packInstall.sh # change as needed
Note: See TracBrowser for help on using the repository browser.