aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoryzrh <yzrh@noema.org>2021-09-02 17:04:05 +0000
committeryzrh <yzrh@noema.org>2021-09-02 17:04:05 +0000
commit86b6487fff9dc3151382f691d6f140cf35f678f9 (patch)
tree1e53cc4f2097161940ec648f273e9b9d51199b38
parent409acceffa5698853dc63f143df960849be8dc32 (diff)
downloadmelon-86b6487fff9dc3151382f691d6f140cf35f678f9.tar.gz
melon-86b6487fff9dc3151382f691d6f140cf35f678f9.tar.zst
Remove -march=native in Makefile and remove char **envp for POSIX compliance.
-rw-r--r--src/Makefile2
-rw-r--r--src/melon.c2
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;