mirror of
https://git.freebsd.org/ports.git
synced 2025-07-18 01:39:16 -04:00
Correctly probe for -lpng and supply -L$libdir into LDFLAGS when needed.
This commit is contained in:
parent
39dfc85935
commit
1e397364a3
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=7738
1 changed files with 20 additions and 3 deletions
|
@ -1,6 +1,6 @@
|
||||||
--- configure.orig Sun Jan 12 13:16:51 1997
|
--- configure Mon May 26 18:28:46 1997
|
||||||
+++ configure Sun Jan 12 13:24:04 1997
|
+++ configure Sun Aug 31 23:26:12 1997
|
||||||
@@ -922,6 +922,7 @@
|
@@ -1029,6 +1029,7 @@
|
||||||
LASERGNU=lasergnu_noinstall
|
LASERGNU=lasergnu_noinstall
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
@ -8,3 +8,20 @@
|
||||||
|
|
||||||
maybe_linuxdriver=
|
maybe_linuxdriver=
|
||||||
# Check whether --with-linux-vga or --without-linux-vga was given.
|
# Check whether --with-linux-vga or --without-linux-vga was given.
|
||||||
|
@@ -3419,7 +3420,7 @@
|
||||||
|
echo $ac_n "(cached) $ac_c" 1>&6
|
||||||
|
else
|
||||||
|
ac_save_LIBS="$LIBS"
|
||||||
|
-LIBS="-lpng -lz $LIBS"
|
||||||
|
+LIBS="-L$libdir -lpng -lz $LIBS"
|
||||||
|
cat > conftest.$ac_ext <<EOF
|
||||||
|
#line 3425 "configure"
|
||||||
|
#include "confdefs.h"
|
||||||
|
@@ -3450,6 +3451,7 @@
|
||||||
|
#define HAVE_LIBPNG 1
|
||||||
|
EOF
|
||||||
|
TERMLIBS="$TERMLIBS -lpng -lz"
|
||||||
|
+ LDFLAGS="$LDFLAGS -L$libdir"
|
||||||
|
ac_save_CPPFLAGS="$CPPFLAGS"; CPPFLAGS="$CPPFLAGS -I$includedir"
|
||||||
|
for ac_hdr in png.h zlib.h
|
||||||
|
do
|
||||||
|
|
Loading…
Add table
Reference in a new issue