Skip to content

Commit df6f9b0

Browse files
authored
Merge pull request #5 from disconnect3d/fix-fortify-source-macros
Makefiles: Fix _FORTIFY_SOURCE macros
2 parents 663f1f4 + d79cf9a commit df6f9b0

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

algodsvc/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ REG=reg
1515
SERVICENAME=AlgodSvc
1616
SERVICEDISPLAYNAME="Algorand Node Windows Service"
1717
CC=g++
18-
CFLAGS=-Wall -static -pedantic -O2 -g -fanalyzer -DFORTIFY_SOURCE=2 -fstack-protector
18+
CFLAGS=-Wall -static -pedantic -O2 -g -fanalyzer -D_FORTIFY_SOURCE=2 -fstack-protector
1919
LDFLAGS=-municode
2020
OUTNAME=algodsvc
2121
TARGET=$(OUTNAME).exe

installer/src/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ PCHSOURCE=./inc/json.hpp
2323
PCHOUT=json.hpp.gch
2424
CADLL=$(CABASENAME).dll
2525
CC=g++
26-
CFLAGS=-Wall -Wextra -static -shared -pedantic -O2 -g -fanalyzer -DFORTIFY_SOURCE=2 -fstack-protector -lmsi -municode
26+
CFLAGS=-Wall -Wextra -static -shared -pedantic -O2 -g -fanalyzer -D_FORTIFY_SOURCE=2 -fstack-protector -lmsi -municode
2727
SOURCES=AlgorandNode.wxs UI.wxs WelcomeDlg_2.wxs NodeConfigDlg.wxs MessageDlg.wxs
2828
SUFFIX=$(ALGOVERSION)-$(NETWORK)
2929
OBJDIR=./obj-$(SUFFIX)/

0 commit comments

Comments
 (0)