actually add libz when linking with libpng
This commit is contained in:
parent
0d0157b7f6
commit
fbff08e75b
12
print/pdflib/patches/patch-configure
Normal file
12
print/pdflib/patches/patch-configure
Normal file
@ -0,0 +1,12 @@
|
||||
$OpenBSD: patch-configure,v 1.1 2003/12/18 03:32:20 naddy Exp $
|
||||
--- configure.orig 2003-12-17 19:54:08.000000000 -0700
|
||||
+++ configure 2003-12-17 19:54:34.000000000 -0700
|
||||
@@ -6499,7 +6499,7 @@ if eval "test \"`echo '$''{'ac_cv_lib_$a
|
||||
echo $ac_n "(cached) $ac_c" 1>&6
|
||||
else
|
||||
ac_save_LIBS="$LIBS"
|
||||
-LIBS="-lpng $LIBS"
|
||||
+LIBS="-lpng $EXTERNALLIBS $LIBS"
|
||||
cat > conftest.$ac_ext <<EOF
|
||||
#line 6505 "configure"
|
||||
#include "confdefs.h"
|
13
print/pdflib/patches/patch-configure_in
Normal file
13
print/pdflib/patches/patch-configure_in
Normal file
@ -0,0 +1,13 @@
|
||||
$OpenBSD: patch-configure_in,v 1.1 2003/12/18 03:32:20 naddy Exp $
|
||||
--- configure.in.orig 2003-12-17 19:48:14.000000000 -0700
|
||||
+++ configure.in 2003-12-17 19:48:55.000000000 -0700
|
||||
@@ -685,7 +685,8 @@ AC_ARG_WITH(pnglib,
|
||||
dnl Make sure libpng sits in front of libz
|
||||
AC_CHECK_LIB(png, png_create_read_struct,
|
||||
[EXTERNALLIBS="-lpng $EXTERNALLIBS"],
|
||||
- AC_MSG_ERROR([No usable pnglib library found.]))
|
||||
+ AC_MSG_ERROR([No usable pnglib library found.]),
|
||||
+ $EXTERNALLIBS)
|
||||
|
||||
AC_CHECK_HEADER(png.h, ,
|
||||
AC_MSG_ERROR([No usable pnglib include file found.]))
|
Loading…
Reference in New Issue
Block a user