diff --git a/coremark/01-core_portme.patch b/coremark/01-core_portme.patch index b9e03c9..0fea5af 100644 --- a/coremark/01-core_portme.patch +++ b/coremark/01-core_portme.patch @@ -2,13 +2,15 @@ diff --git a/posix/core_portme.mak b/posix/core_portme.mak index 2852069..3eaaabe 100755 --- a/posix/core_portme.mak +++ b/posix/core_portme.mak -@@ -24,8 +24,12 @@ OUTFLAG= -o +@@ -24,8 +24,14 @@ OUTFLAG= -o CC?= cc # Flag: CFLAGS # Use this flag to define compiler options. Note, you can add compiler options from the command line using XCFLAGS="other flags" -PORT_CFLAGS = -O2 -FLAGS_STR = "$(PORT_CFLAGS) $(XCFLAGS) $(XLFLAGS) $(LFLAGS_END)" +PORT_CFLAGS = ++# FLAGS_STR is used to define string of used flags for the test ++# Filter out some flags that are not necessary to print in benchmark output +FLAGS_STR := $(filter-out -I%,$(PORT_CFLAGS) $(XCFLAGS) $(XLFLAGS) $(LFLAGS_END)) +FLAGS_STR := $(filter-out --sysroot=%,$(FLAGS_STR)) +FLAGS_STR := $(filter-out -B%,$(FLAGS_STR)) @@ -17,7 +19,7 @@ index 2852069..3eaaabe 100755 CFLAGS = $(PORT_CFLAGS) -I$(PORT_DIR) -Iposix -I. -DFLAGS_STR=\"$(FLAGS_STR)\" # Flag: NO_LIBRT # Define if the platform does not provide a librt -@@ -65,7 +69,7 @@ LOAD = echo Loading done +@@ -65,7 +71,7 @@ LOAD = echo Loading done RUN = OEXT = .o diff --git a/coremark/build.sh b/coremark/build.sh index 99ad8e6..a3aae3a 100755 --- a/coremark/build.sh +++ b/coremark/build.sh @@ -53,8 +53,7 @@ if [ -z ${PORTS_COREMARK_THREADS+x} ]; then PORTS_COREMARK_THREADS="1" fi -export XCFLAGS="${CFLAGS} -DUSE_PTHREAD -DMULTITHREAD=${PORTS_COREMARK_THREADS}" -export XLFLAGS="${LDFLAGS}" +export XCFLAGS="${CFLAGS} -DUSE_PTHREAD -DMULTITHREAD=${PORTS_COREMARK_THREADS} ${LDFLAGS}" # Build coremark PORT_DIR=phoenix make compile