From eef2f30e6648cad5e7799fc65e5dea7c5b5cbb20 Mon Sep 17 00:00:00 2001 From: PHO Date: Tue, 24 Jul 2012 13:08:09 +0900 Subject: [PATCH] Fix a bug in handling PKG_CONFIG_PATH. --- Build.rc.example | 2 +- lib/setPath.bash | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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 -- 2.40.0