File tree 2 files changed +11
-4
lines changed
2 files changed +11
-4
lines changed Original file line number Diff line number Diff line change 125
125
end
126
126
end
127
127
128
- if platform . name =~ /sles-15|el-8|debian-10/ || platform . is_fedora?
128
+ # conditional taken from projects/_shared-compiler-settings
129
+ # TODO: refactor condition
130
+ if ( ( platform . is_sles? && platform . os_version . to_i >= 15 ) ||
131
+ ( platform . is_el? && platform . os_version . to_i >= 8 ) ||
132
+ platform . is_debian? ||
133
+ ( platform . is_ubuntu? && platform . os_version . to_i >= 20 ) ||
134
+ ( platform . is_amazon? && platform . os_version . to_i >= 2023 ) ||
135
+ platform . is_fedora?
136
+ )
129
137
pkg . environment 'CFLAGS' , settings [ :cflags ]
130
138
pkg . environment 'CPPFLAGS' , settings [ :cppflags ]
131
139
pkg . environment "LDFLAGS" , settings [ :ldflags ]
Original file line number Diff line number Diff line change 11
11
elsif platform . is_aix?
12
12
pkg . environment "CC" , "/opt/pl-build-tools/bin/gcc"
13
13
pkg . environment "LDFLAGS" , settings [ :ldflags ]
14
- end
15
-
16
- if platform . is_macos?
14
+ else
15
+ pkg . environment "LDFLAGS" , settings [ :ldflags ]
17
16
pkg . environment "CFLAGS" , settings [ :cflags ]
18
17
end
19
18
You can’t perform that action at this time.
0 commit comments