This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
use the linker to link generate_uudmap$(EXE)
authorTony Cook <tony@develop-help.com>
Wed, 24 May 2023 01:57:22 +0000 (11:57 +1000)
committerTony Cook <tony@develop-help.com>
Tue, 4 Jul 2023 00:19:18 +0000 (10:19 +1000)
commit07e3b5cdb6f7260446b791acf0623e01a37e4739
treeff0485bf59f9d72699742438459faf62fafc77a1
parent73dcd1d4a48551519f31dd3aae640a135e1e9e97
use the linker to link generate_uudmap$(EXE)

Recent versions of clang++ complain when building .c files as
C++:

  clang-16: warning: treating 'c' input as 'c++' when in C++ mode,
  this behavior is deprecated [-Wdeprecated]

The solution for this would be to Configure with:

  ./Configure ... -Dcc=clang++\ -xc++ -Dld=clang++

this results in the link stage for generate_uudmap trying to compile
generate_uudmap.o as C++ and hilarity ensues.

Fix this by using the linker to link.
Makefile.SH