ports/ftp/curl/files/patch-configure
Peter Pentchev 1ec0906e49 Update to curl-7.19.4, which fixes a redirection vulnerability.
The changes in the patch files are almost the same as in Eugene's PR,
although I arrived at them mostly independently :)
Reformat all patch files now that I use quilt to manage them.
Fix two complaints from portlint: needless use of CFLAGS and differentiation
between NOPORTDOCS and NOPORTEXAMPLES.  Thanks, Eugene!

PR:		132358
Submitted by:	Eygene Ryabinkin <rea-fbsd@codelabs.ru>
2009-03-07 03:57:38 +00:00

14 lines
467 B
Text

Do not needlessly add /usr/include and /usr/lib to the compiler and
linker flags if the base system OpenSSL is used.
--- a/configure
+++ b/configure
@@ -23435,7 +23435,7 @@
PKGTEST="no"
PREFIX_OPENSSL=$OPT_SSL
LIB_OPENSSL="$PREFIX_OPENSSL/lib$libsuff"
- if "$PREFIX_OPENSSL" != "/usr" ; then
+ if [ "$PREFIX_OPENSSL" != "/usr" ] ; then
LDFLAGS="$LDFLAGS -L$LIB_OPENSSL"
CPPFLAGS="$CPPFLAGS -I$PREFIX_OPENSSL/include"
fi