]> gitweb.michael.orlitzky.com - bash.d.git/blob - compilation
Use POSIX sh compatible syntax where possible.
[bash.d.git] / compilation
1 #!/bin/sh
2
3 # Grab CFLAGS, etc. from the profile...
4 if [ -f /etc/portage/make.profile/make.defaults ]; then
5 . /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 . /etc/portage/make.conf
12 fi
13
14
15 # Not a portage variable, but it's real handy.
16 REPOS="${DISTDIR}/../repositories"
17
18 # These are really the only two that make sense to export to
19 # subsequent commands.
20 export CFLAGS
21 export CXXFLAGS
22
23 # LDFLAGS comes from.. somewhere else.
24 export LDFLAGS="-Wl,-O1 -Wl,--as-needed"