Enable ASLR and DEP on Windows builds

Always enable ASLR and DEP when building GKrellM on Windows. Since
GKrellM also does network communication bugs like buffer overflows and
the like may eventually allow remote code execution. By enabling these
build flags such attacks should be quite a bit more complicated
(although still not impossible).
This commit is contained in:
Stefan Gehn 2014-09-27 16:30:50 +02:00
parent e611393dfa
commit 56bd6fac14
2 changed files with 2 additions and 2 deletions

View File

@ -130,7 +130,7 @@ windows: libgkrellmd.a
$(MAKE) \
BINEXT=".exe" \
CFLAGS="${CFLAGS} -D_WIN32_WINNT=0x0501 -DWINVER=0x0501 -DWIN32_LEAN_AND_MEAN" \
LINK_FLAGS="-mconsole" \
LINK_FLAGS="-mconsole -Wl,--dynamicbase -Wl,--nxcompat" \
EXTRAOBJS="${EXTRAOBJS} win32-resource.o win32-plugin.o" \
SYS_LIBS="-lws2_32 -lwtsapi32 -lpdh -lnetapi32 -liphlpapi -lintl" \
all

View File

@ -168,7 +168,7 @@ windows: libgkrellm.a
$(MAKE) \
BINEXT=".exe" \
CFLAGS="${CFLAGS} -D_WIN32_WINNT=0x0501 -DWINVER=0x0501 -DWIN32_LEAN_AND_MEAN" \
LINK_FLAGS="-mwindows" \
LINK_FLAGS="-mwindows -Wl,--dynamicbase -Wl,--nxcompat" \
EXTRAOBJS="${EXTRAOBJS} winops-win32.o win32-plugin.o win32-resource.o" \
SYS_LIBS="-lws2_32 -lwtsapi32 -lpdh -lnetapi32 -liphlpapi -lintl" \
X11_LIBS="" \