Enlevé fonctions inutilisées.
[hvlinux.git] / functions / main
index 8b14988..499dccc 100644 (file)
@@ -232,37 +232,6 @@ get_pkg_name()
     echo ${1} | sed "s!\([^-][^0-9]*\)-[0-9].*!\1!"
 }
 
-# Saves the content of CFLAGS and CXXFLAGS environment variables.
-save_flags()
-{
-    export OLDCFLAGS=${CFLAGS}
-    export OLDCXXFLAGS=${CXXFLAGS}
-
-    return ${EXIT_SUCCESS}
-}
-
-# Saves the content of CFLAGS and CXXFLAGS environment variables, and then
-# set them to empty strings.
-save_flags_no_optimizations()
-{
-    export OLDCFLAGS=${CFLAGS}
-    export OLDCXXFLAGS=${CXXFLAGS}
-    export CFLAGS=""
-    export CXXFLAGS=""
-
-    return ${EXIT_SUCCESS}
-}
-
-# Restores the previous values of CFLAGS and CXXFLAGS environment variables. These
-# must have been saved first using save_flags().
-restore_flags()
-{
-    export CFLAGS=${OLDCFLAGS}
-    export CXXFLAGS=${OLDCXXFLAGS}
-
-    return ${EXIT_SUCCESS}
-}
-
 # Create symbolic links for start/stop scripts in /etc/rc.d
 #
 # Arg #1: script name
@@ -850,6 +819,9 @@ ipkg()
 
     local HVMAKE_ORIG=${HVMAKE}
 
+    # Make sure to get latest variables assignments (ex: pkg-config)
+    source /etc/profile
+
     while getopts "jl:m:s:" flag ;do
         case ${flag} in
             j)
@@ -954,6 +926,9 @@ ipkg()
 
     ipkg_trap_end
 
+    # Make sure to update dynamic linker run-time bindings
+    ldconfig
+
     return $EXIT_SUCCESS
 }