]> gitweb @ CieloNegro.org - autobuild.git/commitdiff
Fix a bug in handling PKG_CONFIG_PATH.
authorPHO <pho@cielonegro.org>
Tue, 24 Jul 2012 04:08:09 +0000 (13:08 +0900)
committerPHO <pho@cielonegro.org>
Tue, 24 Jul 2012 04:08:09 +0000 (13:08 +0900)
Build.rc.example
lib/setPath.bash

index f074d1711462091e00c6970319e2e7164e858f4f..ddbcb8f204e151113b893a019b8bccab429d1b0e 100644 (file)
@@ -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".
index f41363fb9deba77bad72095311870c2ca031f437..057a0f40541b75fd7a193159e4f2edcbe4adea9f 100644 (file)
@@ -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