2
1
mirror of https://github.com/qpdf/qpdf.git synced 2024-12-23 11:28:56 +00:00

more tweaking of external libs

git-svn-id: svn+q:///qpdf/trunk@875 71b93d88-0707-0410-a8cf-f5a4172ac649
This commit is contained in:
Jay Berkenbilt 2009-10-23 03:34:05 +00:00
parent 3d997eb521
commit d9939b9ad6
2 changed files with 7 additions and 30 deletions

33
TODO
View File

@ -8,34 +8,11 @@
* Write documentation section on source-level API changes between 2.0 * Write documentation section on source-level API changes between 2.0
and 2.1. and 2.1.
* Really need to get rid of embedded external libs. We can either * Document building external libs. From ../external-libs, in an msys
provide them separately for Windows or provide instructions for environment that supports both mingw and msvc, run ./build.sh. The
building them. Remember to remove -DHAVE_VSNPRINTF from resulting zip file should be extracted into qpdf, and
config-msvc and to remove --enable-build-external-libs from both. --enable-external-libs should be passed to configure. Updated
README on this. Check everything.
mingw:
for pcre
./configure --disable-shared --disable-cpp --prefix=...
make
make install
for zlib
./conifgure --prefix=...
make
make install
for qpdf
CFLAGS="-IC:/path/to/pcre... -IC:/path/to/zlib..." \
LDFLAGS="-LC:/path/to/pcre... -LC:/path/to/zlib..." \
./configure --disable-test-compare-images --with-buildrules=mingw
msvc:
* Windows release: config for both compilers, make install. Create * Windows release: config for both compilers, make install. Create
zip files. Probably should put the compiler name somewhere in the zip files. Probably should put the compiler name somewhere in the

View File

@ -321,8 +321,8 @@ if test "$USE_EXTERNAL_LIBS" = "1"; then
if test "$BUILDRULES" = "libtool"; then if test "$BUILDRULES" = "libtool"; then
AC_MSG_ERROR([BUILDRULES=libtool is not supported when building external libraries]) AC_MSG_ERROR([BUILDRULES=libtool is not supported when building external libraries])
fi fi
CPPFLAGS="$CPPFLAGS -Iext/include" CPPFLAGS="$CPPFLAGS -Iexternal-libs/include"
LDFLAGS="$LDFLAGS -Lext/lib-$BUILDRULES" LDFLAGS="$LDFLAGS -Lexternal-libs/lib-$BUILDRULES"
LIBS="$LIBS -lz -lpcre" LIBS="$LIBS -lz -lpcre"
fi fi