source: BLFS/envars.conf@ fd4a798

ablfs-more legacy trunk
Last change on this file since fd4a798 was fd4a798, checked in by Pierre Labastie <pierre.labastie@…>, 3 years ago

Remove $Id$ comments, they are useless with git

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