Skip to content

Commit 1f2a68f

Browse files
kftsehkhaampie
andauthored
tar: conditionally link iconv (spack#47933)
* fix broken packages requiring iconv * tar: -liconv only when libiconv * Revert "fix broken packages requiring iconv" This reverts commit 5fa426b. --------- Co-authored-by: Harmen Stoppels <[email protected]>
1 parent 3fcc38e commit 1f2a68f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

var/spack/repos/builtin/packages/tar/package.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ def determine_version(cls, exe):
7272
return match.group(1) if match else None
7373

7474
def flag_handler(self, name, flags):
75-
if name == "ldflags" and self.spec.satisfies("@1.35"):
75+
if name == "ldflags" and self.spec.satisfies("@1.35 ^[virtuals=iconv] libiconv"):
7676
# https://savannah.gnu.org/bugs/?64441
7777
flags.append("-liconv")
7878
return (flags, None, None)

0 commit comments

Comments
 (0)