Skip to content

Commit

Permalink
openssl: Multiple defines in AutotoolsToolchain causes error
Browse files Browse the repository at this point in the history
  • Loading branch information
klausholstjacobsen committed Feb 20, 2024
1 parent a1c6c89 commit 448030c
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions recipes/openssl/3.x.x/conanfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -452,9 +452,8 @@ def _create_targets(self, cflags, cxxflags, defines, ldflags):
if self._perlasm_scheme:
perlasm_scheme = 'perlasm_scheme => "%s",' % self._perlasm_scheme

defines = " ".join(defines)
defines = 'defines => add("%s"),' % defines if defines else ""
targets = "my %targets"
defines = "\n".join(f"defines => add(\"{d}\")," for d in defines)
targets = "my %targets"

if self._asm_target:
ancestor = '[ "%s", asm("%s") ]' % (self._ancestor_target, self._asm_target)
Expand Down

0 comments on commit 448030c

Please sign in to comment.