@@ -741,7 +741,7 @@ my %targets = (
741741inherit_from => [" linux-generic32" , asm(" mips64_asm" ) ],
742742cflags => add(" -mabi=n32" ),
743743cxxflags => add(" -mabi=n32" ),
744- bn_ops => " SIXTY_FOUR_BIT RC4_CHAR" ,
744+ bn_ops => " RC4_CHAR" ,
745745perlasm_scheme => " n32" ,
746746multilib => " 32" ,
747747 },
@@ -1125,7 +1125,7 @@ my %targets = (
11251125CFLAGS => picker(debug => " -O0 -g" ,
11261126release => " -O" ),
11271127cflags => add(threads(" -pthread" )),
1128- ex_libs => threads(" -pthread" ),
1128+ ex_libs => add( threads(" -pthread" ) ),
11291129bn_ops => " BN_LLONG RC4_CHAR" ,
11301130perlasm_scheme => " aix32" ,
11311131shared_ldflag => add_before(" -shared -static-libgcc" ),
@@ -1138,7 +1138,7 @@ my %targets = (
11381138CFLAGS => picker(debug => " -O0 -g" ,
11391139release => " -O" ),
11401140cflags => combine(" -maix64" , threads(" -pthread" )),
1141- ex_libs => threads(" -pthread" ),
1141+ ex_libs => add( threads(" -pthread" ) ),
11421142bn_ops => " SIXTY_FOUR_BIT_LONG RC4_CHAR" ,
11431143perlasm_scheme => " aix64" ,
11441144shared_ldflag => add_before(" -shared -static-libgcc" ),
@@ -1154,7 +1154,7 @@ my %targets = (
11541154cflags => combine(" -q32 -qmaxmem=16384 -qro -qroconst" ,
11551155 threads(" -qthreaded" )),
11561156cppflags => threads(" -D_THREAD_SAFE" ),
1157- ex_libs => threads(" -lpthreads" ),
1157+ ex_libs => add( threads(" -lpthreads" ) ),
11581158bn_ops => " BN_LLONG RC4_CHAR" ,
11591159perlasm_scheme => " aix32" ,
11601160shared_cflag => " -qpic" ,
@@ -1169,7 +1169,7 @@ my %targets = (
11691169cflags => combine(" -q64 -qmaxmem=16384 -qro -qroconst" ,
11701170 threads(" -qthreaded" )),
11711171cppflags => threads(" -D_THREAD_SAFE" ),
1172- ex_libs => threads(" -lpthreads" ),
1172+ ex_libs => add( threads(" -lpthreads" ) ),
11731173bn_ops => " SIXTY_FOUR_BIT_LONG RC4_CHAR" ,
11741174perlasm_scheme => " aix64" ,
11751175dso_scheme => " dlfcn" ,
@@ -1365,9 +1365,9 @@ my %targets = (
13651365 }
13661366push @ex_libs ,' $(PORTSDK_LIBPATH)/portlib.lib'
13671367if (defined (env(' PORTSDK_LIBPATH' )));
1368- push @ex_libs ,' /nodefaultlib coredll.lib corelibc.lib'
1369- if (env(' TARGETCPU' )eq " X86" );
1370- return @ex_libs ;
1368+ push @ex_libs ,' /nodefaultlib coredll.lib corelibc.lib'
1369+ if (env(' TARGETCPU' )=~ / ^ X86|^ARMV4[IT] / );
1370+ return join ( " " , @ex_libs ) ;
13711371 }),
13721372 },
13731373
@@ -1557,6 +1557,14 @@ my %targets = (
15571557bn_ops => " SIXTY_FOUR_BIT_LONG" ,
15581558perlasm_scheme => " macosx" ,
15591559 },
1560+ " darwin64-arm64-cc" => {
1561+ inherit_from => [" darwin-common" , asm(" aarch64_asm" ) ],
1562+ CFLAGS => add(" -Wall" ),
1563+ cflags => add(" -arch arm64" ),
1564+ lib_cppflags => add(" -DL_ENDIAN" ),
1565+ bn_ops => " SIXTY_FOUR_BIT_LONG" ,
1566+ perlasm_scheme => " ios64" ,
1567+ },
15601568
15611569# #### GNU Hurd
15621570" hurd-x86" => {