Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
src/Makefile: remove -march=native, allow override of SRCARCH
to work towards cross-compile support, allow specification of SRCARCH
which is passed into BPF compilation targets via
-D__TARGET_ARCH_$(SRCARCH). -march=native is not needed.

Signed-off-by: Alan Maguire <[email protected]>
  • Loading branch information
alan-maguire committed Oct 25, 2024
commit be736aaa63e31d1628ad616a577e365a6ebb7cce
4 changes: 2 additions & 2 deletions src/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
# Boston, MA 021110-1307, USA.
#

SRCARCH := $(shell uname -m | sed -e s/i.86/x86/ -e s/x86_64/x86/ \
SRCARCH ?= $(shell uname -m | sed -e s/i.86/x86/ -e s/x86_64/x86/ \
-e /arm64/!s/arm.*/arm/ -e s/sa110/arm/ \
-e s/aarch64.*/arm64/ )

Expand Down Expand Up @@ -56,7 +56,7 @@ endif
VERSION = 0.1.3
VERSION_SCRIPT := libbpftune.map

CFLAGS = -fPIC -Wall -Wextra -march=native -g -I../include -std=c99
CFLAGS = -fPIC -Wall -Wextra -g -I../include -std=c99

CFLAGS += -DBPFTUNE_VERSION='"$(BPFTUNE_VERSION)"' \
-DBPFTUNER_PREFIX_DIR='"$(prefix)"' \
Expand Down