]> gitweb.michael.orlitzky.com - bash.d.git/blob - compilation
compilation: load variables from the profile make.defaults, too.
[bash.d.git] / compilation
1 #!/bin/bash
2
3 # Grab CFLAGS, etc. from the profile...
4 if [ -f /etc/portage/make.profile/make.defaults ]; then
5 source /etc/portage/make.profile/make.defaults
6 fi
7
8 # and from make.conf, allowing the values in make.conf to override the
9 # ones in the profile.
10 if [ -f /etc/portage/make.conf ]; then
11 source /etc/portage/make.conf
12 fi
13
14
15 # Not a portage variable, but it's real handy.
16 REPOS="${DISTDIR}/../repositories"
17
18
19 # LDFLAGS comes from.. somewhere else.
20 export LDFLAGS="-Wl,-O1 -Wl,--as-needed"