Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion lib/libpe/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ override CFLAGS += \
-I"./include" \
-fPIC \
-W -Wall -Wextra -pedantic -std=c99 -c
override CPPFLAGS += -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2

#override LDFLAGS += -lssl -lcrypto
LIBS = -lssl -lcrypto -lm

Expand Down
7 changes: 0 additions & 7 deletions src/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -61,13 +61,6 @@ override CPPFLAGS += \
-DSHAREDIR="\"$(SHAREDIR)"\" \
-DPLUGINSDIR="\"$(pluginsdir)"\"

# Some gcc/clang builds (depends on the distro) already define _FORTIFY_SOURCE internally, so we
# only define it if it has not been already. This avoids redefinition warnings and weakening
# those distros' hardening settings.
ifneq ($(findstring _FORTIFY_SOURCE, $(CPPFLAGS)), _FORTIFY_SOURCE)
override CPPFLAGS += -D_FORTIFY_SOURCE=1
endif

ifeq ($(PLATFORM_OS), Darwin)
# We disable warnings for deprecated declarations since Apple deprecated OpenSSL in Mac OS X 10.7
override CFLAGS += -Wno-deprecated-declarations
Expand Down