Respect AR (bug #977691), RANLIB, and avoid passing unnecessary flags. --- a/SConstruct +++ b/SConstruct @@ -804,3 +804,3 @@ # `-msse2` is implied when compiling for x86_64. - env.Append(CCFLAGS=["-msse4.2", "-mpopcnt"]) + pass elif env["arch"] == "x86_32": @@ -883,3 +883,3 @@ else: - env.AppendUnique(LINKFLAGS=["-s"]) + pass --- a/platform/linuxbsd/detect.py +++ b/platform/linuxbsd/detect.py @@ -118,2 +118,4 @@ ## Compiler configuration + env["AR"] = os.environ["AR"] + env["RANLIB"] = os.environ["RANLIB"]