From 908ae0c78c2905c32ea56818b28f1b647c98f7e9 Mon Sep 17 00:00:00 2001 From: iceman1001 Date: Fri, 15 Sep 2023 21:53:52 +0200 Subject: [PATCH] ...confused makefiles stuff --- tools/cryptorf/Makefile | 16 +--------------- 1 file changed, 1 insertion(+), 15 deletions(-) diff --git a/tools/cryptorf/Makefile b/tools/cryptorf/Makefile index 75fe80644..ed94fb846 100644 --- a/tools/cryptorf/Makefile +++ b/tools/cryptorf/Makefile @@ -4,26 +4,12 @@ MYINCLUDES = -I../../common/cryptorf MYCFLAGS = MYDEFS = -# A better way would be to just try compiling with march and seeing if we succeed -cpu_arch = $(shell uname -m) -ifneq ($(findstring arm64, $(cpu_arch)), ) - MYCFLAGS += -mcpu=native - -# iOS 'fun' -else ifneq ($(findstring iP, $(cpu_arch)), ) - MYCFLAGS += -mcpu=native -else - MYCFLAGS += -march=native -endif - platform = $(shell uname) # Atomic # RPi Zero gcc requires -latomic -# but MacOSX /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ld -# doesn't recognize option --as-needed ifneq ($(platform),Darwin) - MYLDLIBS += -lpthread -Wl,--as-needed -latomic -Wl,--no-as-needed + MYLDLIBS += -lpthread endif BINS = cm sm sma sma_multi