File tree Expand file tree Collapse file tree 3 files changed +6
-8
lines changed Expand file tree Collapse file tree 3 files changed +6
-8
lines changed Original file line number Diff line number Diff line change @@ -7421,9 +7421,6 @@ $as_echo "$ac_cv_enable_visibility" >&6; }
7421
7421
;;
7422
7422
7423
7423
Darwin* )
7424
- # Issue #35569: Expose the RFC 3542 socket options.
7425
- CFLAGS=" -D__APPLE_USE_RFC_3542 ${CFLAGS} "
7426
-
7427
7424
# -Wno-long-double, -no-cpp-precomp, and -mno-fused-madd
7428
7425
# used to be here, but non-Apple gcc doesn't accept them.
7429
7426
if test " ${CC} " = gcc
Original file line number Diff line number Diff line change @@ -1844,9 +1844,6 @@ yes)
1844
1844
;;
1845
1845
1846
1846
Darwin*)
1847
- # Issue #35569: Expose the RFC 3542 socket options.
1848
- CFLAGS="-D__APPLE_USE_RFC_3542 ${CFLAGS}"
1849
-
1850
1847
# -Wno-long-double, -no-cpp-precomp, and -mno-fused-madd
1851
1848
# used to be here, but non-Apple gcc doesn't accept them.
1852
1849
if test "${CC}" = gcc
Original file line number Diff line number Diff line change @@ -1094,8 +1094,12 @@ def detect_crypt(self):
1094
1094
def detect_socket (self ):
1095
1095
# socket(2)
1096
1096
if not VXWORKS :
1097
- self .add (Extension ('_socket' , ['socketmodule.c' ],
1098
- depends = ['socketmodule.h' ]))
1097
+ kwargs = {'depends' : ['socketmodule.h' ]}
1098
+ if MACOS :
1099
+ # Issue #35569: Expose RFC 3542 socket options.
1100
+ kwargs ['extra_compile_args' ] = ['-D__APPLE_USE_RFC_3542' ]
1101
+
1102
+ self .add (Extension ('_socket' , ['socketmodule.c' ], ** kwargs ))
1099
1103
elif self .compiler .find_library_file (self .lib_dirs , 'net' ):
1100
1104
libs = ['net' ]
1101
1105
self .add (Extension ('_socket' , ['socketmodule.c' ],
You can’t perform that action at this time.
0 commit comments