Skip to content

Commit 12e3fb5

Browse files
committed
Updating linux build
1 parent f4ccc51 commit 12e3fb5

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

Makefile.linux

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,10 @@ SRCS = $(SRC_PATH)/frawscale.cpp
1616
SRCS += $(SRC_PATH)/libsrcnn.cpp
1717
OBJS = $(SRCS:$(SRC_PATH)/%.cpp=$(OBJ_PATH)/%.o)
1818

19-
CFLAGS = -mtune=native -fopenmp -ffast-math
19+
# -fPIC option usally used for nVidia JetsonTX2 AARCH64.
20+
# remove this option if it cuased to build error.
21+
CFLAGS = -mtune=native -fopenmp -ffast-math
22+
CFLAGS += -fPIC
2023
CFLAGS += -I$(SRC_PATH)
2124
CFLAGS += -DBUILDING_DLL
2225

0 commit comments

Comments
 (0)