mirror of
https://github.com/Tiiffi/mcrcon.git
synced 2025-10-27 11:21:07 -04:00
Modify compilation flags:
- Remove "-s" flag - Change stack protector mode from "strong" to "all" - Change optimization level from "-Os" to "-O2"
This commit is contained in:
8
Makefile
8
Makefile
@ -4,7 +4,7 @@
|
||||
# make
|
||||
#
|
||||
# Windows cross compile:
|
||||
# i686-w64-mingw32-gcc -std=gnu99 -Wall -Wextra -Wpedantic -Os -s -o mcrcon.exe mcrcon.c -lws2_32
|
||||
# i686-w64-mingw32-gcc -std=gnu99 -Wall -Wextra -Wpedantic -O2 -o mcrcon.exe mcrcon.c -lws2_32
|
||||
|
||||
EXENAME = mcrcon
|
||||
PREFIX ?= /usr/local
|
||||
@ -14,8 +14,8 @@ LINKER =
|
||||
RM = rm -v -f
|
||||
|
||||
CC = gcc
|
||||
CFLAGS = -std=gnu99 -Wall -Wextra -Wpedantic -Os -s
|
||||
EXTRAFLAGS ?= -fstack-protector-strong
|
||||
CFLAGS = -std=gnu99 -Wall -Wextra -Wpedantic -O2
|
||||
EXTRAFLAGS ?= -fstack-protector-all
|
||||
|
||||
ifeq ($(OS), Windows_NT)
|
||||
LINKER = -lws2_32
|
||||
@ -25,7 +25,7 @@ endif
|
||||
|
||||
ifeq ($(shell uname), Darwin)
|
||||
INSTALL = ginstall
|
||||
CFLAGS = -std=gnu99 -Wall -Wextra -Wpedantic -Os
|
||||
CFLAGS = -std=gnu99 -Wall -Wextra -Wpedantic -O2
|
||||
endif
|
||||
|
||||
.PHONY: all
|
||||
|
||||
Reference in New Issue
Block a user