Skip to content

Commit 6a50f5f

Browse files
authored
Merge pull request #98 from oracle/towards-cross
src/Makefile: remove -march=native, allow override of SRCARCH
2 parents be71f96 + be736aa commit 6a50f5f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Makefile

+2-2
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
# Boston, MA 021110-1307, USA.
1818
#
1919

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

@@ -56,7 +56,7 @@ endif
5656
VERSION = 0.1.3
5757
VERSION_SCRIPT := libbpftune.map
5858

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

6161
CFLAGS += -DBPFTUNE_VERSION='"$(BPFTUNE_VERSION)"' \
6262
-DBPFTUNER_PREFIX_DIR='"$(prefix)"' \

0 commit comments

Comments
 (0)