Merge pull request #580 from Faless/js/fix_suffix

Fix JavaScript library suffix.
pull/587/head
Fabio Alessandrelli 2021-07-09 15:51:51 +02:00 committed by GitHub
commit 98124aafe8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 1 deletions

1
.gitignore vendored
View File

@ -6,6 +6,7 @@ logs/*
*.os *.os
*.so *.so
*.obj *.obj
*.bc
*.pyc *.pyc
*.dblite *.dblite
*.pdb *.pdb

View File

@ -397,7 +397,7 @@ elif env["platform"] == "javascript":
# Program() output consists of multiple files, so specify suffixes manually at builder. # Program() output consists of multiple files, so specify suffixes manually at builder.
env["PROGSUFFIX"] = "" env["PROGSUFFIX"] = ""
env["LIBPREFIX"] = "lib" env["LIBPREFIX"] = "lib"
env["LIBSUFFIX"] = ".bc" env["LIBSUFFIX"] = ".a"
env["LIBPREFIXES"] = ["$LIBPREFIX"] env["LIBPREFIXES"] = ["$LIBPREFIX"]
env["LIBSUFFIXES"] = ["$LIBSUFFIX"] env["LIBSUFFIXES"] = ["$LIBSUFFIX"]
env.Replace(SHLINKFLAGS='$LINKFLAGS') env.Replace(SHLINKFLAGS='$LINKFLAGS')