forked from mirrors/nixpkgs
wget: Remove runtime dependency on OpenSSL headers
It collects compilation and linking flags that are displayed on `wget --version`. Setting to 0 (NULL) is safe.
This commit is contained in:
parent
06eba7d320
commit
0eadc53b4b
|
@ -10,6 +10,8 @@ stdenv.mkDerivation rec {
|
|||
sha256 = "0dzv5xf9qxc2bp4cyifmaghh3h464wbm73xiwcrvckf1ynqbgxv7";
|
||||
};
|
||||
|
||||
patches = [ ./remove-runtime-dep-on-openssl-headers.patch ];
|
||||
|
||||
preConfigure = ''
|
||||
for i in "doc/texi2pod.pl" "util/rmold.pl"; do
|
||||
sed -i "$i" -e 's|/usr/bin.*perl|${perl}/bin/perl|g'
|
||||
|
|
|
@ -0,0 +1,17 @@
|
|||
diff --git a/src/Makefile.in b/src/Makefile.in
|
||||
index 1a36a9b..e279c84 100644
|
||||
--- a/src/Makefile.in
|
||||
+++ b/src/Makefile.in
|
||||
@@ -2211,10 +2211,9 @@ version.c: $(wget_SOURCES) ../lib/libgnu.a
|
||||
echo '' >> $@
|
||||
echo '#include "version.h"' >> $@
|
||||
echo 'const char *version_string = "@VERSION@";' >> $@
|
||||
- echo 'const char *compilation_string = "'$(COMPILE)'";' \
|
||||
+ echo 'const char *compilation_string = 0;' \
|
||||
| $(ESCAPEQUOTE) >> $@
|
||||
- echo 'const char *link_string = "'$(CCLD) $(AM_CFLAGS) $(CFLAGS) \
|
||||
- $(AM_LDFLAGS) $(LDFLAGS) $(LIBS) $(wget_LDADD)'";' \
|
||||
+ echo 'const char *link_string = 0;' \
|
||||
| $(ESCAPEQUOTE) >> $@
|
||||
|
||||
css.c: $(srcdir)/css.l
|
Loading…
Reference in a new issue