Skip to content

Commit

Permalink
static linking of libcurl
Browse files Browse the repository at this point in the history
  • Loading branch information
trikko committed Oct 12, 2023
1 parent 8940db4 commit 21f7789
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 2 deletions.
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ tshare.dylib
tshare.dll
tshare.a
tshare.lib
libcurl.dll
tshare-test-*
*.exe
*.pdb
Expand Down
Binary file removed dist/libcurl.dll
Binary file not shown.
3 changes: 2 additions & 1 deletion dub.sdl
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,6 @@ authors "Andrea Fontana"
copyright "Copyright © 2023, Andrea Fontana"
license "MIT"
postBuildCommands "echo '\n👇👇 Install Now! 👇👇\n\nsudo cp tshare /usr/local/bin\n'" platform="posix"
copyFiles "dist/libcurl.dll" platform="windows"
dflags "-link-defaultlib-shared=false" platform="ldc"
dflags "-static" platform="windows"
lflags "curl_a.lib" "crypt32.lib" "wldap32.lib" "curl.exp" platform="windows"

0 comments on commit 21f7789

Please sign in to comment.