From: PHO Date: Tue, 24 Jul 2012 04:08:09 +0000 (+0900) Subject: Fix a bug in handling PKG_CONFIG_PATH. X-Git-Url: http://git.cielonegro.org/gitweb.cgi?p=autobuild.git;a=commitdiff_plain;h=eef2f30e6648cad5e7799fc65e5dea7c5b5cbb20 Fix a bug in handling PKG_CONFIG_PATH. --- diff --git a/Build.rc.example b/Build.rc.example index f074d17..ddbcb8f 100644 --- a/Build.rc.example +++ b/Build.rc.example @@ -22,7 +22,7 @@ setPath PATH \ # build. (Default: empty) # setPath PKG_CONFIG_PATH \ - "/usr/pkg/bin" + "/usr/pkg/lib/pkgconfig" # ----------------------------------------------------------------------------- # The extra arguments to be passed to "./configure". diff --git a/lib/setPath.bash b/lib/setPath.bash index f41363f..057a0f4 100644 --- a/lib/setPath.bash +++ b/lib/setPath.bash @@ -29,7 +29,7 @@ function setPath () { "PKG_CONFIG_PATH") # THINKME: Special case for PKG_CONFIG_PATH: we prepend # "$prefix/lib/pkgconfig" to it. - PKG_CONFIG_PATH="$prefix/lib/pkgconfig";; + PKG_CONFIG_PATH="$prefix/lib/pkgconfig:$PKG_CONFIG_PATH";; *) ;; esac