gcc -maix64 -maix64 -Wl,-b64 -Wl,-bhalt:4 -Wl,-G -Wl,-bI:/opt/itsv/applperlbin/install-5.36.0/lib/perl5/5.36/CORE/perl.exp -Wl,-bnoentry -lpthreads -lc -lm -L/opt/freeware/lib64 -L/opt/freeware/lib -L/usr/local/lib -Wl,--exclude-libs,ALL -Wl,-bE:CryptX.exp CryptX.o -o blib/arch/auto/CryptX/CryptX.so src/liballinone.a \
\
ld: 0706-012 The -- flag is not recognized.
ld: 0706-005 Cannot find or open file: ALL
ld:open(): No such file or directory
collect2: error: ld returned 255 exit status
make: *** [Makefile:704: blib/arch/auto/CryptX/CryptX.so] Error 1
--exclude-libs,ALL is not a valid aix linker option hence the error
change in Makefile.PL
#FIX: https://github.com/DCIT/perl-CryptX/pull/79
# not needed on MS Windows
# does not work on macos - Apple LLVM 12.0.5 (clang-1205.0.22.9) ld: unknown option: --exclude-libs
# does not work on solaris - gcc 9.3.0 - ld: fatal: unrecognized option '--exclude-libs'
if ($^O !~ /^(MSWin32|darwin|solaris|aix)$/ && ($Config{ld} =~ /gcc|g\+\+/ || $Config{gccversion})) {
push @EUMM_INC_LIB, (LDDLFLAGS => "$Config{lddlflags} -Wl,--exclude-libs,ALL");
--exclude-libs,ALL is not a valid aix linker option hence the error
change in Makefile.PL