]> git.netwichtig.de Git - user/henk/code/inspircd.git/commitdiff
Add a work around for trampling over PKG_CONFIG_PATH.
authorPeter Powell <petpow@saberuk.com>
Sun, 10 Aug 2014 16:41:54 +0000 (17:41 +0100)
committerPeter Powell <petpow@saberuk.com>
Tue, 19 Aug 2014 14:27:19 +0000 (15:27 +0100)
The extend_pkg_path method will be removed in 2.2 as it
causes problems with non-standard pkg-config paths. This
commit adds a workaround until that happens.

make/utilities.pm

index 8c8ac0d49ca70d32eb33dbcec29401888f112ee7..42dd6b547553b7a3775a51bb5ccf9f813e7b048f 100644 (file)
@@ -95,6 +95,7 @@ sub make_rpath($;$)
 
 sub extend_pkg_path()
 {
+       return if defined $ENV{DISABLE_EXTEND_PKG_PATH};
        if (!exists $ENV{PKG_CONFIG_PATH})
        {
                $ENV{PKG_CONFIG_PATH} = "/usr/lib/pkgconfig:/usr/local/lib/pkgconfig:/usr/local/libdata/pkgconfig:/usr/X11R6/libdata/pkgconfig";