do not use --exclude-libs hack on solaris
Karel Miko
2 years ago
63 | 63 | ); |
64 | 64 | |
65 | 65 | #FIX: https://github.com/DCIT/perl-CryptX/pull/79 |
66 | # not needed on MS Windows | |
66 | 67 | # does not work on macos - Apple LLVM 12.0.5 (clang-1205.0.22.9) ld: unknown option: --exclude-libs |
67 | if ($^O ne 'MSWin32' && $^O ne 'darwin' && ($Config{ld} =~ /gcc|g\+\+/ || $Config{gccversion})) { | |
68 | # does not work on solaris - gcc 9.3.0 - ld: fatal: unrecognized option '--exclude-libs' | |
69 | if ($^O !~ /^(MSWin32|darwin|solaris)$/ && ($Config{ld} =~ /gcc|g\+\+/ || $Config{gccversion})) { | |
68 | 70 | push @EUMM_INC_LIB, (LDDLFLAGS => "$Config{lddlflags} -Wl,--exclude-libs,ALL"); |
69 | 71 | } |
70 | 72 | } |