Skip to content

Commit 419bce1

Browse files
plexoosveprbl
andauthored
cons: fix for multiple include dirs returned by xml2-config (#497)
xml2-config --cflags may return multiple paths in which case cons expects them to be separated by ':' --------- Co-authored-by: Dmitry Kalinkin <[email protected]>
1 parent d94e0db commit 419bce1

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

mgr/ConsDefs.pm

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -983,7 +983,8 @@
983983

984984
$XMLINCDIR = `$xml --cflags`;
985985
chomp($XMLINCDIR);
986-
$XMLINCDIR =~ s/-I//;
986+
$XMLINCDIR =~ s/ -I/:/g;
987+
$XMLINCDIR =~ s/-I//g;
987988
my $XML = `$xml --libs`; # die "$XML\n";
988989
my(@libs)= split(" ", $XML);
989990

0 commit comments

Comments
 (0)