Skip to content

Commit 05d6144

Browse files
committed
Fix link issue on Mac OSX (force link against lstdc++)
Fixes #28
1 parent af90ad7 commit 05d6144

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Makefile.PL

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -496,7 +496,7 @@ my $static = 0;
496496
sub compile_lib {
497497
my ($name) = @_;
498498
my @args = (
499-
'$(LD) $(OPTIMIZE) -shared', "-o ${name}",
499+
'$(LD) $(OPTIMIZE) -lstdc++ -shared', "-o ${name}",
500500
);
501501
# need special path on windows and MSVC (cl)
502502
if ($^O eq 'MSWin32' && $Config{cc} =~ /^cl/) {

0 commit comments

Comments
 (0)