Skip to content

Commit

Permalink
Update Makefile
Browse files Browse the repository at this point in the history
  • Loading branch information
SashaXser committed Aug 13, 2024
1 parent f07ff66 commit 40758a8
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions src/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -9,21 +9,22 @@ MINGWINCLUDE = /usr/$(CPREFIX)/include/

TARGET = goodbyedpi.exe
LIBS = -L$(WINDIVERTLIBS) -lWinDivert -lws2_32
CC = $(CPREFIX)gcc

CC = $(CPREFIX)clang

CCWINDRES = $(CPREFIX)windres
ifeq (, $(shell which $(CPREFIX)windres))
CCWINDRES = windres
endif

# Обновленные флаги компиляции
CFLAGS = -std=c99 -fPIE -pipe -I$(WINDIVERTHEADERS) -I$(MINGWINCLUDE) -L$(WINDIVERTLIBS) \
CFLAGS = --target=$(CPREFIX) --sysroot=$(MINGWLIB) -std=c99 -fPIE -pipe \
-I$(WINDIVERTHEADERS) -I$(MINGWINCLUDE) -L$(WINDIVERTLIBS) \
-O3 -march=x86-64-v3 -D_FORTIFY_SOURCE=2 -fstack-protector \
-Wall -Wextra -Wpedantic -Wformat=2 -Wshadow -Wstrict-aliasing=1 \
-Wnull-dereference -Wcast-align -Wsign-conversion

LDFLAGS = -fstack-protector -Wl,-O3,-pie,--dynamicbase,--nxcompat,--sort-common,--as-needed \
-Wl,--disable-auto-image-base
-Wl,--disable-auto-image-base

ifdef BIT64
LDFLAGS += -Wl,--high-entropy-va -Wl,--pic-executable,-e,mainCRTStartup
Expand Down

0 comments on commit 40758a8

Please sign in to comment.