-
Notifications
You must be signed in to change notification settings - Fork 65
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Linux build, windows init.sh fixes (#238)
- Loading branch information
1 parent
ae67c60
commit edc69bd
Showing
10 changed files
with
91 additions
and
88 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,23 +1,14 @@ | ||
when findExe("musl-gcc").len != 0: | ||
# Use musl-gcc when available | ||
putEnv("CC", "musl-gcc") | ||
switch("gcc.exe", "musl-gcc") | ||
switch("gcc.linkerexe", "musl-gcc") | ||
|
||
# Statically linking everything | ||
when not defined(OSX): | ||
switch("passL", "-static") | ||
|
||
switch("define", "ssl") | ||
|
||
when defined(windows): | ||
# TODO: change once issue nim#15520 is resolved | ||
# TODO: change once issue nim#15220 is resolved | ||
switch("define", "noOpenSSLHacks") | ||
switch("dynlibOverride", "ssl-") | ||
switch("dynlibOverride", "crypto-") | ||
switch("define", "sslVersion:(") | ||
|
||
switch("passL", "-lws2_32") | ||
else: | ||
switch("dynlibOverride", "ssl") | ||
switch("dynlibOverride", "crypto") | ||
|
||
when defined(staticBuild): | ||
import "choosenimpkg/proxyexe.nims" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
when defined(staticBuild): | ||
when defined(linux): | ||
putEnv("CC", "musl-gcc") | ||
switch("gcc.exe", "musl-gcc") | ||
switch("gcc.linkerexe", "musl-gcc") | ||
when not defined(OSX): | ||
switch("passL", "-static") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters