Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

wrong linker options for aix #85

Closed
flynn1973 opened this issue Aug 11, 2022 · 0 comments
Closed

wrong linker options for aix #85

flynn1973 opened this issue Aug 11, 2022 · 0 comments

Comments

@flynn1973
Copy link

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");
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant