source: BLFS/envars.conf@ c8d5f11

ablfs-more legacy trunk
Last change on this file since c8d5f11 was 1fa0dee, checked in by Pierre Labastie <pierre@…>, 7 years ago

Prepend JH_ to exported variables in jhalfs-blfs, so that collision with
build system variables is unlikely

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