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.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • gs2-extensions/xpdf-tools/trunk/src/packages/GS-README.txt

    r32250 r32251  
    455455
    456456https://unix.stackexchange.com/questions/279397/ldd-dont-find-path-how-to-add
     457
     458
     459D. On why you can't build static binaries on Mac, but can build static libraries and link against them
     460
     461https://developer.apple.com/library/archive/qa/qa1118/_index.html (official page on how Mac doesn't support static binaries)
     462https://stackoverflow.com/questions/3801011/ld-library-not-found-for-lcrt0-o-on-osx-10-6-with-gcc-clang-static-flag
     463https://stackoverflow.com/questions/844819/how-to-static-link-on-os-x (mention of -Bstatic)
     464https://www.allegro.cc/forums/thread/610923
     465https://dropline.net/2015/10/static-linking-on-mac-os-x/ (explains that on Mac, .dylibs must be hidden for .a versions of libraries to be selected when linking)
     466    This means that where possible we want to essentially do "--enable-static --disable-shared", or equivalent, when generating freetype, libz, libpng, libjpg, libtiff library files
     467    so that Xpdf-Tools links against the .a files we generated rather than additional .dylib files
     468
     469http://www.simplesystems.org/libtiff/build.html
     470configuration options for building libtiff. Want to turn off the compile process for libtiff producing tiff binaries, but there appears to be no such option.
    457471
    458472
Note: See TracChangeset for help on using the changeset viewer.