--- Makefile.orig 2023-02-07 23:18:07.000000000 +0100 +++ Makefile 2023-02-09 21:57:42.966634000 +0100 @@ -46,7 +46,7 @@ # X11 libraries on your system. (e.g. libX11-devel mesa-libGL-devel) # # Comment the line out to disable these tests. -# GRAPHIC_TESTS = defined +GRAPHIC_TESTS = defined # Set "GL_LIBS" to the libraries needed to link a GL program. GL_LIBS = -lGL -lXext -lX11 @@ -55,7 +55,7 @@ # COMPILER CONFIGURATION: Set "CC" to the name of the compiler to use # to build the binary benchmarks. You should also set "$cCompiler" in the # Run script to the name of the compiler you want to test. -CC=gcc +#CC=gcc # OPTIMISATION SETTINGS: # Use gcc option if defined UB_GCC_OPTIONS via "Environment variable" or "Command-line arguments". @@ -87,7 +87,7 @@ ## (-ffast-math) disables strict IEEE or ISO rules/specifications for math funcs OPTON = -O3 -ffast-math - ## OS detection. Comment out if gmake syntax not supported by other 'make'. + ## OS detection. Comment out if gmake syntax not supported by other 'make'. OSNAME:=$(shell uname -s) ARCH := $(shell uname -p) ifeq ($(OSNAME),Linux) @@ -113,6 +113,9 @@ CFLAGS += -Wa,-q endif + ifeq ($(OSNAME),FreeBSD) + OPTON += -march=native -mtune=native -fomit-frame-pointer + endif endif