Skip to content

Commit ff99ff7

Browse files
committed
fix: replace -ansi with -std=gnu89 in Concorde build
-ansi disables POSIX extensions, breaking builds on modern Linux (h_addr macro unavailable, gethostname signature mismatch). -std=gnu89 enforces C89 syntax while keeping POSIX/GNU extensions. Fixes #79, fixes #84.
1 parent 8609d72 commit ff99ff7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ def build_concorde():
9191
print("building concorde")
9292
_run("tar xzvf concorde.tgz", "build")
9393

94-
cflags = "-fPIC -O2 -g -ansi"
94+
cflags = "-fPIC -O2 -g -std=gnu89"
9595

9696
if platform.system().startswith("Darwin"):
9797
flags = "--host=darwin"

0 commit comments

Comments
 (0)