mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-18 06:21:40 +00:00
Don't rely on man for ld feature detection
This commit is contained in:
+2
-1
@@ -405,7 +405,8 @@ try:
|
|||||||
LDFLAGS=os.environ["LDFLAGS"]
|
LDFLAGS=os.environ["LDFLAGS"]
|
||||||
except KeyError:
|
except KeyError:
|
||||||
LDFLAGS=""
|
LDFLAGS=""
|
||||||
if sp.call([bash, "-c", "man ld 2> /dev/null | grep gc-sections &> /dev/null"]) == 0:
|
|
||||||
|
if sp.call([bash, "-c", "ld --gc-sections 2>&1 | grep unrecognized &> /dev/null"]) != 0:
|
||||||
CXXFLAGS_MINIMAL="%s -fPIC %s" % (CXXFLAGS, str.join(" ", ADDITIONAL_ARGS))
|
CXXFLAGS_MINIMAL="%s -fPIC %s" % (CXXFLAGS, str.join(" ", ADDITIONAL_ARGS))
|
||||||
os.environ["CXXFLAGS_MINIMAL"]=CXXFLAGS_MINIMAL
|
os.environ["CXXFLAGS_MINIMAL"]=CXXFLAGS_MINIMAL
|
||||||
CFLAGS_MINIMAL="%s -fPIC %s" % (CFLAGS, str.join(" ", ADDITIONAL_ARGS))
|
CFLAGS_MINIMAL="%s -fPIC %s" % (CFLAGS, str.join(" ", ADDITIONAL_ARGS))
|
||||||
|
|||||||
Reference in New Issue
Block a user