]> gitweb.michael.orlitzky.com - bash.d.git/blobdiff - compilation
compilation: export FCFLAGS.
[bash.d.git] / compilation
index 6320e7069b0338802e0928b295f40a992f3307b8..69d6d9982aef8ab42d59616cdb7a08c1a005d3f9 100644 (file)
@@ -12,8 +12,9 @@ load_profile_defaults() {
     fi
 
     if [ -f "${profile}/make.defaults" ]; then
-       . "${profile}/make.defaults"
-       echo "loaded ${profile}/make.defaults"
+       if [ -r "${profile}/make.defaults" ]; then
+          . "${profile}/make.defaults"
+       fi
     fi
 }
 
@@ -23,15 +24,14 @@ load_profile_defaults /etc/portage/make.profile
 # and from make.conf, allowing the values in make.conf to override the
 # ones in the profile.
 if [ -f /etc/portage/make.conf ]; then
-    . /etc/portage/make.conf
+    if [ -r /etc/portage/make.conf ]; then
+       . /etc/portage/make.conf
+    fi
 fi
 
-
-# Not a portage variable, but it's real handy.
-REPOS="${DISTDIR}/../repositories"
-
 # These are really the only variables that make sense to export to
 # subsequent commands.
 export CFLAGS
 export CXXFLAGS
+export FCFLAGS
 export LDFLAGS