Skip to content

Commit

Permalink
Enable debug for curl build
Browse files Browse the repository at this point in the history
  • Loading branch information
perklet committed Jan 8, 2025
1 parent b83f2a8 commit 916cb0f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion Makefile.in
Original file line number Diff line number Diff line change
Expand Up @@ -277,7 +277,7 @@ $(CURL_VERSION)/.chrome: $(chrome_libs) $(CURL_VERSION).tar.gz $(CURL_VERSION)/.

echo "Configuring curl with: $$config_flags"

CXXFLAGS="-stdlib=libc++" LDFLAGS="-lc++" ./configure --without-libpsl $$config_flags LIBS="$$add_libs"
CXXFLAGS="-stdlib=libc++" LDFLAGS="-lc++" ./configure --without-libpsl --enable-debug $$config_flags LIBS="$$add_libs"

# Remove possible leftovers from a previous compilation
$(MAKE) clean MAKEFLAGS=
Expand Down
6 changes: 3 additions & 3 deletions patches/curl.patch
Original file line number Diff line number Diff line change
Expand Up @@ -354,7 +354,7 @@ index fb162a30d..43b2264bc 100644
/**
* Return the n-th header entry or NULL if it does not exist.
diff --git a/lib/easy.c b/lib/easy.c
index d16fa8c07..234caf72f 100644
index d16fa8c07..5a03b6b16 100644
--- a/lib/easy.c
+++ b/lib/easy.c
@@ -74,6 +74,8 @@
Expand Down Expand Up @@ -594,8 +594,8 @@ index d16fa8c07..234caf72f 100644
{
CURLcode result;
struct Curl_easy *data;
+ char *env_target;
+ char *env_headers;
+ char *env_target = NULL;
+ char *env_headers = NULL;

/* Make sure we inited the global SSL stuff */
global_init_lock();
Expand Down

0 comments on commit 916cb0f

Please sign in to comment.