From 86b6487fff9dc3151382f691d6f140cf35f678f9 Mon Sep 17 00:00:00 2001 From: yzrh Date: Thu, 2 Sep 2021 17:04:05 +0000 Subject: Remove -march=native in Makefile and remove char **envp for POSIX compliance. --- src/Makefile | 2 +- src/melon.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Makefile b/src/Makefile index ec98cf7..b300426 100644 --- a/src/Makefile +++ b/src/Makefile @@ -15,7 +15,7 @@ obj = ${src:.c=.o} PREFIX = /usr/local -CFLAGS = -O3 -march=native -pipe -flto -Wall -Wextra -Wno-unused-parameter +CFLAGS = -O3 -pipe -flto -Wall -Wextra -Wno-unused-parameter LDFLAGS = -Wl,-O3 -lcrypto -liconv -lz -ljbig -ljpeg -Wl,--as-needed CFLAGS += -I/usr/local/include diff --git a/src/melon.c b/src/melon.c index 9a90551..8741989 100644 --- a/src/melon.c +++ b/src/melon.c @@ -14,7 +14,7 @@ #include "version.h" int -main(int argc, char **argv, char **envp) +main(int argc, char **argv) { cnki_t *param = NULL; -- cgit v1.2.3