File tree 1 file changed +6
-3
lines changed 1 file changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -74,17 +74,20 @@ def _make_tool_impl(ctx):
74
74
arflags = [e for e in frozen_arflags ]
75
75
if absolute_ar == "libtool" or absolute_ar .endswith ("/libtool" ):
76
76
arflags .append ("-o" )
77
-
77
+
78
+ _joined_non_sysroot_ldflags = _join_flags_list (ctx .workspace_name , non_sysroot_ldflags )
79
+
78
80
if os_name (ctx ) == "macos" :
79
- non_sysroot_ldflags += ["-undefined" , "error" ]
81
+ _joined_non_sysroot_ldflags = _joined_non_sysroot_ldflags .replace ("-undefined dynamic_lookup" , "" )
82
+ _joined_non_sysroot_ldflags += " -undefined error"
80
83
81
84
env .update ({
82
85
"AR" : absolute_ar ,
83
86
"ARFLAGS" : _join_flags_list (ctx .workspace_name , arflags ),
84
87
"CC" : absolute_cc ,
85
88
"CFLAGS" : _join_flags_list (ctx .workspace_name , non_sysroot_cflags ),
86
89
"LD" : absolute_ld ,
87
- "LDFLAGS" : _join_flags_list ( ctx . workspace_name , non_sysroot_ldflags ) ,
90
+ "LDFLAGS" : _joined_non_sysroot_ldflags ,
88
91
})
89
92
90
93
configure_env = " " .join (["%s=\" %s\" " % (key , value ) for key , value in env .items ()])
You can’t perform that action at this time.
0 commit comments