Changeset 31076

Show
Ignore:
Timestamp:
07.11.2016 17:42:14 (3 years ago)
Author:
sjm84
Message:

Getting GS2 yaz client compile in 32 bi tlsb linux environment again when we're disabling shared and enabling static. In such a case, we are forced to tell pkgconfig to do things statically too by passing in --static

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • main/trunk/greenstone2/runtime-src/packages/configure

    r31073 r31076  
    184184    
    185185# YAZ Z39.50 toolkit 
     186# http://stackoverflow.com/questions/21027388/how-to-make-pkg-check-modules-work-with-static-libraries 
    186187echo "" 
    187188echo "Configuring YAZ" 
     
    194195  gzip -dc yaz-2.1.56.tar.gz | tar -xf - 
    195196  cd yaz-2.1.56 && \ 
    196     PKG_CONFIG="pkg-config --static" ./configure $CACHE_FILE --prefix="$PACKAGES/yaz" --bindir="$bindir" --disable-shared --enable-static $HOSTTARGETFLAGS 
     197    ac_cv_path_pkgconfigpath="pkg-config --static" ./configure $CACHE_FILE --prefix="$PACKAGES/yaz" --bindir="$bindir" --disable-shared --enable-static $HOSTTARGETFLAGS 
    197198else 
    198199  echo "YAZ support disabled"