Ignore:
Timestamp:
2018-07-10T18:32:20+12:00 (6 years ago)
Author:
ak19
Message:
  1. Getting LIBJPEG to compile on Mac requires not passing --enable-static. On Mac too, compiling LIBJPEG also only produces .a (and no .so/.dylib) no matter what, but that happens to be what we want anyway. 2. Turning off building shared libraries (--disable-shared) for all libraries we build that are used by xpdftools, so that on Mac it hopefully chooses to link these in (which won't happen if there's a preferred dylib elsewhere, particularly on the system, which will then get linked in in preference on Macs). Still need to test these changes on Linux again.
Location:
gs2-extensions/xpdf-tools/trunk/src/packages/CASCADE-MAKE
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • gs2-extensions/xpdf-tools/trunk/src/packages/CASCADE-MAKE/FREETYPE.sh

    r32228 r32251  
    1414
    1515opt_run_untar $force_untar $auto_untar $package $version
    16 opt_run_configure $force_config $auto_config $package $version "$prefix"
     16opt_run_configure $force_config $auto_config $package $version "$prefix" --enable-static --disable-shared
    1717
    1818opt_run_make $compile   $package $version
  • gs2-extensions/xpdf-tools/trunk/src/packages/CASCADE-MAKE/LIBJPEG.sh

    r32249 r32251  
    4242# http://www.linuxfromscratch.org/blfs/view/6.3/general/libjpeg.html
    4343# only the libjpeg.a is produced with this command
    44 opt_run_configure $force_config $auto_config $package $version "$prefix" \
    45     --enable-static --enable-shared
     44opt_run_configure $force_config $auto_config $package $version "$prefix"
     45#opt_run_configure $force_config $auto_config $package $version "$prefix" \
     46#    --enable-static --enable-shared
     47#         --host=x86_64-linux-gnu --build=x86_64-linux-gnu --target=x86_64-linux-gnu --enable-static --enable-shared
    4648# The following didn't fix the configuration and subsequent libtool error described above
    4749# and with or without it, there's still reference to host=x86_64-unknown(-unknown)-linux-gnu in configure output:
  • gs2-extensions/xpdf-tools/trunk/src/packages/CASCADE-MAKE/LIBPNG.sh

    r32245 r32251  
    2020opt_run_untar $force_untar $auto_untar $package $version
    2121
    22 opt_run_configure $force_config $auto_config $package $version $prefix
     22opt_run_configure $force_config $auto_config $package $version $prefix --enable-static --disable-shared
    2323
    2424opt_run_make $compile $package $version
  • gs2-extensions/xpdf-tools/trunk/src/packages/CASCADE-MAKE/LIBTIFF.sh

    r32249 r32251  
    1414
    1515opt_run_untar $force_untar $auto_untar $package $version
    16 opt_run_configure $force_config $auto_config $package $version "$prefix"
     16opt_run_configure $force_config $auto_config $package $version "$prefix" --enable-static --disable-shared
    1717
    1818opt_run_make $compile   $package $version
  • gs2-extensions/xpdf-tools/trunk/src/packages/CASCADE-MAKE/LIBZ.sh

    r32228 r32251  
    3030fi
    3131
     32# We don't want the generated .so/.dylibs on linux and mac,  just the .a static libs
     33# According to https://github.com/luvit/zlib/blob/master/configure
     34# "Normally configure builds both a static and a shared library.
     35# If you want to build just a static library, use: ./configure --static"
    3236if [ $force_config = "1" ] ; then
    3337    echo "[pushd $package$version]"
    3438    ( cd $package$version ; \
    35       echo $CROSSCONFIGURE_VARS ./configure --prefix="$prefix" $CROSSCONFIGURE_ARGS $@ ; \
    36       eval $CROSSCONFIGURE_VARS ./configure --prefix="$prefix" $CROSSCONFIGURE_ARGS $@ )
     39      echo $CROSSCONFIGURE_VARS ./configure --static --prefix="$prefix" $CROSSCONFIGURE_ARGS $@ ; \
     40      eval $CROSSCONFIGURE_VARS ./configure --static --prefix="$prefix" $CROSSCONFIGURE_ARGS $@ )
    3741    if [ $? != 0 ] ; then
    3842        echo "      Error encountered running *configure* stage of $progname"
Note: See TracChangeset for help on using the changeset viewer.