Skip to content

Commit

Permalink
Patch curl to compile on FreeBSD
Browse files Browse the repository at this point in the history
  • Loading branch information
gaborcsardi committed Dec 18, 2024
1 parent 66897ec commit ff95ea3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/library/curl/configure
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,8 @@ sed -e "s|@cflags@|$PKG_CFLAGS|" -e "s|@libs@|$PKG_LIBS|" src/Makevars.in > src/

# Extract curlopt symbols
echo '#include <curl/curl.h>' | ${CC} ${CPPFLAGS} ${PKG_CFLAGS} ${CFLAGS} -E -xc - \
| grep "^[ \t]*CURLOPT_.*," | sed s/,// > tools/option_table.txt
| grep "^[ \t]*CURLOPT_.*," | sed s/,// | sed 's/__attribute__[(][(].*[)][)] =/=/' \
> tools/option_table.txt

# Success
exit 0

0 comments on commit ff95ea3

Please sign in to comment.